Skip to content

Commit 2765bd4

Browse files
committed
std: fix typo in std::path
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent 0d11be5 commit 2765bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ impl PathBuf {
12441244
///
12451245
/// The caller has free choice over the returned lifetime, including 'static.
12461246
/// Indeed, this function is ideally used for data that lives for the remainder of
1247-
/// the programs life, as dropping the returned reference will cause a memory leak.
1247+
/// the program's life, as dropping the returned reference will cause a memory leak.
12481248
///
12491249
/// It does not reallocate or shrink the `PathBuf`, so the leaked allocation may include
12501250
/// unused capacity that is not part of the returned slice. If you want to discard excess
@@ -3028,7 +3028,7 @@ impl Path {
30283028
///
30293029
/// This function always resolves `..` to the "lexical" parent.
30303030
/// That is "a/b/../c" will always resolve to `a/c` which can change the meaning of the path.
3031-
/// In particular, `a/c` and `a/b/../c` are distinct on many systems because `b` may be a symbolic link, so its parent isnt `a`.
3031+
/// In particular, `a/c` and `a/b/../c` are distinct on many systems because `b` may be a symbolic link, so its parent isn't `a`.
30323032
///
30333033
/// </div>
30343034
///

0 commit comments

Comments
 (0)