Skip to content

Commit 6bb8512

Browse files
MarijnS95emilio
authored andcommitted
Fix broken intradoc link on ParseCallbacks::header_file()
By having the `()[]` syntax the wrong way around, `rustdoc` seems to treat the leading ``(`link`)`` as text while picking up the ``[`link`]`` as an item via ["Implied Shortcut Reference Links"](https://rust-lang.github.io/rfcs/1946-intra-rustdoc-links.html#implied-shortcut-reference-links). Flip that to make the link render as expected again.
1 parent 72dc5f8 commit 6bb8512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/callbacks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub trait ParseCallbacks: fmt::Debug {
9999
None
100100
}
101101

102-
/// This will be called on every header filename passed to (`Builder::header`)[`crate::Builder::header`].
102+
/// This will be called on every header filename passed to [`Builder::header`][crate::Builder::header].
103103
fn header_file(&self, _filename: &str) {}
104104

105105
/// This will be called on every file inclusion, with the full path of the included file.

0 commit comments

Comments
 (0)