Skip to content

Commit

Permalink
Fix broken link to format_ident macro documentation
Browse files Browse the repository at this point in the history
    warning: unresolved link to `format_ident`
      --> src/ident_fragment.rs:10:11
       |
    10 | /// See [`format_ident!`] for more information.
       |           ^^^^^^^^^^^^^ no item named `format_ident` in scope
       |
       = note: `macro_rules` named `format_ident` exists in this crate, but it is not in scope at this link's location
       = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
  • Loading branch information
dtolnay committed May 8, 2023
1 parent 05afe13 commit c52d219
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ident_fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use std::borrow::Cow;
/// stripped, if present.
///
/// See [`format_ident!`] for more information.
///
/// [`format_ident!`]: crate::format_ident
pub trait IdentFragment {
/// Format this value as an identifier fragment.
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result;
Expand Down

0 comments on commit c52d219

Please sign in to comment.