File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/stable/src/libstd Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 4e8afd65f93f1c351365c71f4461a2c6728f8287
32
+ refs/heads/stable: 02b8e4e6cf6f3fc3a7d31f348fc82bafa0165e3a
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -1449,6 +1449,8 @@ impl Path {
1449
1449
1450
1450
/// Determines whether `base` is a prefix of `self`.
1451
1451
///
1452
+ /// Only considers whole path components to match.
1453
+ ///
1452
1454
/// # Examples
1453
1455
///
1454
1456
/// ```
@@ -1457,6 +1459,8 @@ impl Path {
1457
1459
/// let path = Path::new("/etc/passwd");
1458
1460
///
1459
1461
/// assert!(path.starts_with("/etc"));
1462
+ ///
1463
+ /// assert!(!path.starts_with("/e"));
1460
1464
/// ```
1461
1465
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1462
1466
pub fn starts_with < P : AsRef < Path > > ( & self , base : P ) -> bool {
@@ -1465,6 +1469,8 @@ impl Path {
1465
1469
1466
1470
/// Determines whether `child` is a suffix of `self`.
1467
1471
///
1472
+ /// Only considers whole path components to match.
1473
+ ///
1468
1474
/// # Examples
1469
1475
///
1470
1476
/// ```
You can’t perform that action at this time.
0 commit comments