Skip to content

Commit

Permalink
Reword Path::require_ident documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 10, 2023
1 parent 07a89dd commit e05bcea
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ impl Path {
}
}

/// Error if this does not contain only one segment.
///
/// A path is considered an ident if:
///
/// - the path has no leading colon,
/// - the number of path segments is 1, and
/// - the first path segment has no angle bracketed or parenthesized
/// path arguments.
/// An error if this path is not a single ident, as defined in `get_ident`.
#[cfg(feature = "parsing")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))]
pub fn require_ident(&self) -> Result<&Ident> {
Expand Down

0 comments on commit e05bcea

Please sign in to comment.