Skip to content

Commit 8bcbcae

Browse files
committed
Fix a typo
1 parent 235aca5 commit 8bcbcae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ size, and cannot be mutated. It is a reference to a sequence of UTF-8 bytes.
1919
let greeting = "Hello there."; // greeting: &'static str
2020
```
2121

22-
`"Hello there."` is a string literal and its type is `&'static str`. String
22+
`"Hello there."` is a string literal and its type is `&'static str`. A string
2323
literal is a string slice that is statically allocated, meaning that it’s saved
2424
inside our compiled program, and exists for the entire duration it runs. The
2525
`greeting` binding is a reference to this statically allocated string. Any

0 commit comments

Comments
 (0)