diff options
| author | Sanchith Hegde <sanchith.hegde01@gmail.com> | 2024-11-29 03:50:26 +0530 |
|---|---|---|
| committer | Sanchith Hegde <sanchith.hegde01@gmail.com> | 2024-11-29 03:50:26 +0530 |
| commit | d599d5a381ecceabd0b662af73982257545cbe1a (patch) | |
| tree | 7dc460d7b1f127aac574025b7d4ee5da47c03d56 | |
| parent | a2545fd6fc66b4323f555223a860c451885d1d2b (diff) | |
fix: fix codeblocks in `PathBuf` example
| -rw-r--r-- | library/std/src/path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 33a3e4332f3..d50e7f1b5e9 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1158,6 +1158,7 @@ impl FusedIterator for Ancestors<'_> {} /// Note that `PathBuf` does not always sanitize arguments, for example /// [`push`] allows paths built from strings which include separators: /// +/// ``` /// use std::path::PathBuf; /// /// let mut path = PathBuf::new(); @@ -1166,6 +1167,7 @@ impl FusedIterator for Ancestors<'_> {} /// path.push("windows"); /// path.push(r"..\otherdir"); /// path.push("system32"); +/// ``` /// /// The behavior of `PathBuf` may be changed to a panic on such inputs /// in the future. [`Extend::extend`] should be used to add multi-part paths. |
