We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7112d06 commit 7fdeeeaCopy full SHA for 7fdeeea
std/src/path.rs
@@ -2683,6 +2683,8 @@ impl Path {
2683
///
2684
/// assert_eq!("foo", Path::new("foo.rs").file_prefix().unwrap());
2685
/// assert_eq!("foo", Path::new("foo.tar.gz").file_prefix().unwrap());
2686
+ /// assert_eq!(".config", Path::new(".config").file_prefix().unwrap());
2687
+ /// assert_eq!(".config", Path::new(".config.toml").file_prefix().unwrap());
2688
/// ```
2689
2690
/// # See Also
0 commit comments