From 8bcbcae86686e112e63049c856b9d19f37079580 Mon Sep 17 00:00:00 2001 From: Jan Likar Date: Sun, 15 Nov 2015 14:21:13 +0100 Subject: [PATCH] Fix a typo --- src/doc/trpl/strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/strings.md b/src/doc/trpl/strings.md index 00c12bdca51f..42a0acd21a2a 100644 --- a/src/doc/trpl/strings.md +++ b/src/doc/trpl/strings.md @@ -19,7 +19,7 @@ size, and cannot be mutated. It is a reference to a sequence of UTF-8 bytes. let greeting = "Hello there."; // greeting: &'static str ``` -`"Hello there."` is a string literal and its type is `&'static str`. String +`"Hello there."` is a string literal and its type is `&'static str`. A string literal is a string slice that is statically allocated, meaning that it’s saved inside our compiled program, and exists for the entire duration it runs. The `greeting` binding is a reference to this statically allocated string. Any