File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2109,14 +2109,14 @@ impl Path {
2109
2109
/// ```
2110
2110
/// use std::path::Path;
2111
2111
///
2112
- /// let path = Path::new("/etc/passwd ");
2112
+ /// let path = Path::new("/etc/resolv.conf ");
2113
2113
///
2114
- /// assert!(path.ends_with("passwd "));
2115
- /// assert!(path.ends_with("etc/passwd "));
2116
- /// assert!(path.ends_with("/etc/passwd "));
2114
+ /// assert!(path.ends_with("resolv.conf "));
2115
+ /// assert!(path.ends_with("etc/resolv.conf "));
2116
+ /// assert!(path.ends_with("/etc/resolv.conf "));
2117
2117
///
2118
- /// assert!(!path.ends_with("/passwd "));
2119
- /// assert!(!path.ends_with("wd ")); // use .extension() instead
2118
+ /// assert!(!path.ends_with("/resolv.conf "));
2119
+ /// assert!(!path.ends_with("conf ")); // use .extension() instead
2120
2120
/// ```
2121
2121
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2122
2122
pub fn ends_with < P : AsRef < Path > > ( & self , child : P ) -> bool {
You can’t perform that action at this time.
0 commit comments