mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-27 16:07:46 +00:00
Update README.MD
This commit is contained in:
parent
ec90e593f3
commit
8eced95f00
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user