Unnamed repository; edit this file 'description' to name the repository.
Merge rust-analyzer/smol_str#43
43: Clarify what `WS` is r=Veykril a=Veykril Closes https://github.com/rust-analyzer/smol_str/issues/17 bors r+ Co-authored-by: Lukas Wirth <[email protected]>
bors[bot] 2022-04-03
parent 0b808e8 · parent a956245 · commit d025e36
-rw-r--r--lib/smol_str/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smol_str/src/lib.rs b/lib/smol_str/src/lib.rs
index 45ec174a20..8c92e51e1c 100644
--- a/lib/smol_str/src/lib.rs
+++ b/lib/smol_str/src/lib.rs
@@ -29,6 +29,8 @@ use core::{
/// languages. Strings consisting of a series of newlines, followed by a series of
/// whitespace are a typical pattern in computer programs because of indentation.
/// Note that a specialized interner might be a better solution for some use cases.
+///
+/// `WS`: A string of 32 newlines followed by 128 spaces.
#[derive(Clone)]
pub struct SmolStr(Repr);