about summary refs log tree commit diff
path: root/library/alloc/src/vec/is_zero.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-25 12:01:08 +0200
committerRalf Jung <post@ralfj.de>2024-10-25 12:02:47 +0200
commit854e3c43e005c992542a80bea9bbe16230470362 (patch)
tree8d818508ebc787af9adaf2df7eddc403594b5746 /library/alloc/src/vec/is_zero.rs
parent017ae1b21f7be6dcdcfc95631e54bde806653a8a (diff)
downloadrust-854e3c43e005c992542a80bea9bbe16230470362.tar.gz
rust-854e3c43e005c992542a80bea9bbe16230470362.zip
library: consistently use American spelling for 'behavior'
Diffstat (limited to 'library/alloc/src/vec/is_zero.rs')
-rw-r--r--library/alloc/src/vec/is_zero.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/is_zero.rs b/library/alloc/src/vec/is_zero.rs
index bcc5bf4d65b..ba57d940d8c 100644
--- a/library/alloc/src/vec/is_zero.rs
+++ b/library/alloc/src/vec/is_zero.rs
@@ -172,7 +172,7 @@ macro_rules! impl_is_zero_option_of_bool {
             fn is_zero(&self) -> bool {
                 // SAFETY: This is *not* a stable layout guarantee, but
                 // inside `core` we're allowed to rely on the current rustc
-                // behaviour that options of bools will be one byte with
+                // behavior that options of bools will be one byte with
                 // no padding, so long as they're nested less than 254 deep.
                 let raw: u8 = unsafe { core::mem::transmute(*self) };
                 raw == 0