library: consistently use American spelling for 'behavior'

This commit is contained in:
Ralf Jung
2024-10-25 12:01:08 +02:00
parent 017ae1b21f
commit 854e3c43e0
46 changed files with 75 additions and 75 deletions

View File

@@ -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