Skip to content

Commit c239f03

Browse files
committed
Update documentation of parsing Ident
1 parent 553aaa9 commit c239f03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,11 @@ impl fmt::Debug for Punct {
714714
/// - A lifetime is not an identifier. Use `syn::Lifetime` instead.
715715
///
716716
/// An identifier constructed with `Ident::new` is permitted to be a Rust
717-
/// keyword, though parsing one through its [`Synom`] implementation rejects
718-
/// Rust keywords. Use `call!(Ident::parse_any)` when parsing to match the
717+
/// keyword, though parsing one through its [`Parse`] implementation rejects
718+
/// Rust keywords. Use `input.call(Ident::parse_any)` when parsing to match the
719719
/// behaviour of `Ident::new`.
720720
///
721-
/// [`Synom`]: https://docs.rs/syn/0.14/syn/synom/trait.Synom.html
721+
/// [`Parse`]: https://docs.rs/syn/0.15/syn/parse/trait.Parse.html
722722
///
723723
/// # Examples
724724
///

0 commit comments

Comments
 (0)