Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape [ and ] characters when it's not a link #1965

Closed
inflation opened this issue Jan 8, 2021 · 1 comment
Closed

Escape [ and ] characters when it's not a link #1965

inflation opened this issue Jan 8, 2021 · 1 comment

Comments

@inflation
Copy link

Input C/C++ Header

/** The tone mapping will leave unchanged (linear mapping) any pixels whose
 * brightness is strictly below this. The interpretation depends on
 * relative_to_max_display. If true, this is a ratio [0, 1] of the maximum
 * display brightness [nits], otherwise an absolute brightness [nits].
 */

Bindgen Invocation

bindgen::Builder::default()
    .header("input.h")
    .generate()
    .unwrap()

Actual Results

     |
1706 | /     #[doc = " The tone mapping will leave unchanged (linear mapping) any pixels whose"]
1707 | |     #[doc = " brightness is strictly below this. The interpretation depends on"]
1708 | |     #[doc = " relative_to_max_display. If true, this is a ratio [0, 1] of the maximum"]
1709 | |     #[doc = " display brightness [nits], otherwise an absolute brightness [nits]."]
     | |___________________________________________________________________________________^
     |
     = note: `#[warn(broken_intra_doc_links)]` on by default
     = note: the link appears in this line:

             display brightness [nits], otherwise an absolute brightness [nits].
                                 ^^^^
     = note: no item named `nits` in scope
     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

Expected Results

No warnings.

Maybe this is super low priority, feel free to close it. 😃

@pvdrz
Copy link
Contributor

pvdrz commented Sep 9, 2022

This is a duplicate of #1955

@pvdrz pvdrz closed this as completed Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants