about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-07-07 19:45:43 +0800
committerGitHub <noreply@github.com>2025-07-07 19:45:43 +0800
commite366f16b1692844cf09598decea02e7d768ef88a (patch)
tree2bee407431df32b05806f49f52057b86a0123659
parent4be8c49cdc59fb1e0597507282b4381cb9af0f95 (diff)
parent2765bd48f0560ac483b9589f55ca3fa2287697f3 (diff)
downloadrust-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.rs4
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>
     ///