From e05bcea1f6c03980bdae95828f6fd5fd061de7ef Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Sep 2023 13:10:26 -0700 Subject: [PATCH] Reword Path::require_ident documentation --- src/path.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/path.rs b/src/path.rs index 174a509a03..b9d96e669a 100644 --- a/src/path.rs +++ b/src/path.rs @@ -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> {