diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-25 12:01:08 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-25 12:02:47 +0200 |
| commit | 854e3c43e005c992542a80bea9bbe16230470362 (patch) | |
| tree | 8d818508ebc787af9adaf2df7eddc403594b5746 /library/std/src/path.rs | |
| parent | 017ae1b21f7be6dcdcfc95631e54bde806653a8a (diff) | |
| download | rust-854e3c43e005c992542a80bea9bbe16230470362.tar.gz rust-854e3c43e005c992542a80bea9bbe16230470362.zip | |
library: consistently use American spelling for 'behavior'
Diffstat (limited to 'library/std/src/path.rs')
| -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 63edfdb82f3..62125f885b2 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1167,7 +1167,7 @@ impl FusedIterator for Ancestors<'_> {} /// path.push(r"..\otherdir"); /// path.push("system32"); /// -/// The behaviour of `PathBuf` may be changed to a panic on such inputs +/// 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. #[cfg_attr(not(test), rustc_diagnostic_item = "PathBuf")] #[stable(feature = "rust1", since = "1.0.0")] @@ -1409,7 +1409,7 @@ impl PathBuf { /// (That is, it will have the same parent.) /// /// The argument is not sanitized, so can include separators. This - /// behaviour may be changed to a panic in the future. + /// behavior may be changed to a panic in the future. /// /// [`self.file_name`]: Path::file_name /// [`pop`]: PathBuf::pop |
