From 9e40bfbf817dda947940fd86f797660b73d8f099 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 3 Nov 2025 00:17:06 +0100 Subject: [PATCH] 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. --- bindgen/callbacks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindgen/callbacks.rs b/bindgen/callbacks.rs index f923544e27..630a306aec 100644 --- a/bindgen/callbacks.rs +++ b/bindgen/callbacks.rs @@ -99,7 +99,7 @@ pub trait ParseCallbacks: fmt::Debug { None } - /// This will be called on every header filename passed to (`Builder::header`)[`crate::Builder::header`]. + /// This will be called on every header filename passed to [`Builder::header`][crate::Builder::header]. fn header_file(&self, _filename: &str) {} /// This will be called on every file inclusion, with the full path of the included file.