We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e83b70 + 9d9504a commit 3a87b5aCopy full SHA for 3a87b5a
src/libstd/ffi/mod.rs
@@ -53,7 +53,7 @@
53
//! terminator, so the buffer length is really `len+1` characters.
54
//! Rust strings don't have a nul terminator; their length is always
55
//! stored and does not need to be calculated. While in Rust
56
-//! accessing a string's length is a O(1) operation (becasue the
+//! accessing a string's length is a O(1) operation (because the
57
//! length is stored); in C it is an O(length) operation because the
58
//! length needs to be computed by scanning the string for the nul
59
//! terminator.
0 commit comments