diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-07-07 19:45:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 19:45:43 +0800 |
| commit | e366f16b1692844cf09598decea02e7d768ef88a (patch) | |
| tree | 2bee407431df32b05806f49f52057b86a0123659 | |
| parent | 4be8c49cdc59fb1e0597507282b4381cb9af0f95 (diff) | |
| parent | 2765bd48f0560ac483b9589f55ca3fa2287697f3 (diff) | |
| download | rust-e366f16b1692844cf09598decea02e7d768ef88a.tar.gz rust-e366f16b1692844cf09598decea02e7d768ef88a.zip | |
Rollup merge of #143563 - xizheyin:fix-typo, r=joshtriplett
std: fix typo in `std::path` I noticed that most of the document used `'` instead of `’`, so I adjusted it. r? `@ibraheemdev`
| -rw-r--r-- | library/std/src/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 0ce20a143df..d9c34d4fa04 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1244,7 +1244,7 @@ impl PathBuf { /// /// The caller has free choice over the returned lifetime, including 'static. /// Indeed, this function is ideally used for data that lives for the remainder of - /// the program’s life, as dropping the returned reference will cause a memory leak. + /// the program's life, as dropping the returned reference will cause a memory leak. /// /// It does not reallocate or shrink the `PathBuf`, so the leaked allocation may include /// unused capacity that is not part of the returned slice. If you want to discard excess @@ -3028,7 +3028,7 @@ impl Path { /// /// This function always resolves `..` to the "lexical" parent. /// That is "a/b/../c" will always resolve to `a/c` which can change the meaning of the path. - /// 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`. + /// 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`. /// /// </div> /// |
