diff --git a/lib/smol_str/README.md b/lib/smol_str/README.md index 56296fb53f7d..7b52a6c5b373 100644 --- a/lib/smol_str/README.md +++ b/lib/smol_str/README.md @@ -8,7 +8,7 @@ A `SmolStr` is a string type that has the following properties: * `size_of::() == 24` (therefore `== size_of::()` on 64 bit platforms) -* `Clone` is `O(1)` +* `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 `src/lib.rs`). Such strings consist diff --git a/lib/smol_str/src/lib.rs b/lib/smol_str/src/lib.rs index 55ede286c245..b76c1c7d1486 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::() == 24` (therefor `== size_of::()` on 64 bit platforms) -/// * `Clone` is `O(1)` +/// * `size_of::() == 24` (therefore `== size_of::()` 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