Update README.MD

This commit is contained in:
austaras 2023-01-23 21:19:58 +08:00
parent ec90e593f3
commit 8eced95f00

View File

@ -10,8 +10,8 @@ A `SmolStr` is a string type that has the following properties:
* `size_of::<SmolStr>() == size_of::<String>()`
* `Clone` is `O(1)`
* Strings are stack-allocated if they are:
* Up to 22 bytes long
* Longer than 22 bytes, but substrings of `WS` (see `src/lib.rs`). Such strings consist
* Up to 23 bytes long
* Longer than 23 bytes, but substrings of `WS` (see `src/lib.rs`). Such strings consist
solely of consecutive newlines, followed by consecutive spaces
* If a string does not satisfy the aforementioned conditions, it is heap-allocated