mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-23 08:48:08 +00:00
Update README.MD
This commit is contained in:
parent
ec90e593f3
commit
8eced95f00
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue