Skip to content

Commit

Permalink
Rollup merge of rust-lang#47340 - alercah:typo-fix, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Fix typo.
  • Loading branch information
kennytm authored Jan 11, 2018
2 parents 0e83b70 + 9d9504a commit 3a87b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
//! terminator, so the buffer length is really `len+1` characters.
//! Rust strings don't have a nul terminator; their length is always
//! stored and does not need to be calculated. While in Rust
//! accessing a string's length is a O(1) operation (becasue the
//! accessing a string's length is a O(1) operation (because the
//! length is stored); in C it is an O(length) operation because the
//! length needs to be computed by scanning the string for the nul
//! terminator.
Expand Down

0 comments on commit 3a87b5a

Please sign in to comment.