fix typo/grammatical error in rust.html.markdown (#4985)

This commit is contained in:
ary 2024-06-25 04:03:23 -04:00 committed by GitHub
parent 30edebae88
commit 0cdd791b9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ fn main() {
// A string slice an immutable view into another string
// This is basically an immutable pair of pointers to a string it doesnt
// actually contain the contents of a string, just a pointer to
// the begin and a pointer to the end of a string buffer,
// the beginning and a pointer to the end of a string buffer,
// statically allocated or contained in another object (in this case, `s`).
// The string slice is like a view `&[u8]` into `Vec<T>`.
let s_slice: &str = &s;