mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
fix typo/grammatical error in rust.html.markdown (#4985)
This commit is contained in:
parent
30edebae88
commit
0cdd791b9f
@ -99,7 +99,7 @@ fn main() {
|
|||||||
// A string slice – an immutable view into another string
|
// A string slice – an immutable view into another string
|
||||||
// This is basically an immutable pair of pointers to a string – it doesn’t
|
// This is basically an immutable pair of pointers to a string – it doesn’t
|
||||||
// actually contain the contents of a string, just a pointer to
|
// 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`).
|
// statically allocated or contained in another object (in this case, `s`).
|
||||||
// The string slice is like a view `&[u8]` into `Vec<T>`.
|
// The string slice is like a view `&[u8]` into `Vec<T>`.
|
||||||
let s_slice: &str = &s;
|
let s_slice: &str = &s;
|
||||||
|
Loading…
Reference in New Issue
Block a user