Remove a couple edits

This commit is contained in:
Boris Verkhovskiy 2024-07-21 12:13:44 -07:00 committed by GitHub
parent ed543df8b1
commit 3fade42bb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,12 +92,12 @@ fn main() {
println!("{} {}", f, x); // 1.3 hello world
// A `String` a heap-allocated string
// It is stored as a `Vec<u8>` and always holds a valid UTF-8 sequence,
// Stored as a `Vec<u8>` and always holds a valid UTF-8 sequence,
// which is not null terminated.
let s: String = "hello world".to_string();
// A string slice an immutable view into another string
// This is basically just an immutable pointer and length of a string it
// This is basically an immutable pointer and length of a string it
// doesnt actually contain the contents of a string, just a pointer to
// the beginning and a length of a string buffer,
// statically allocated or contained in another object (in this case, `s`).