Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/smol_str/src/lib.rs')
| -rw-r--r-- | lib/smol_str/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smol_str/src/lib.rs b/lib/smol_str/src/lib.rs index 55ede286c2..b76c1c7d14 100644 --- a/lib/smol_str/src/lib.rs +++ b/lib/smol_str/src/lib.rs @@ -15,8 +15,8 @@ use core::{ /// A `SmolStr` is a string type that has the following properties: /// -/// * `size_of::<SmolStr>() == 24` (therefor `== size_of::<String>()` on 64 bit platforms) -/// * `Clone` is `O(1)` +/// * `size_of::<SmolStr>() == 24` (therefore `== size_of::<String>()` on 64 bit platforms) +/// * `Clone` is `O(1)` (no allocation) /// * Strings are stack-allocated if they are: /// * Up to 23 bytes long /// * Longer than 23 bytes, but substrings of `WS` (see below). Such strings consist |