Return the String guide to its former glory.#21056
Conversation
src/doc/trpl/more-strings.md
Outdated
There was a problem hiding this comment.
"Like any Rust reference type" maybe?
|
r? @sfackler |
5d74940 to
e68865b
Compare
|
This has been updated now. |
src/doc/trpl/more-strings.md
Outdated
There was a problem hiding this comment.
Using &'static str here seems wrong, maybe "string literal"?
There was a problem hiding this comment.
Why is it wrong?
There was a problem hiding this comment.
It just seems a bit strange since the paragraph's saying that slices are a view into an already allocated string, such as a slice, but isn't that a view into an already allocated string?
There was a problem hiding this comment.
I guess it is strange because it's an edge case: a &'static str is an always-allocated thing. And I tend to refer to things by their type explicitly. But I can see that. Lemme fix it.
|
r=me with the one last nit. |
e68865b to
b33dfdb
Compare
|
@bors: r=sfackler b33dfdb rollup |
|
⌛ Testing commit b33dfdb with merge 1fcaec0... |
|
💔 Test failed - auto-mac-64-opt |
b33dfdb to
cef8295
Compare
When we moved over to the book, we lost this.
|
Woo |
…kler When we moved over to the book, we lost this.
…yarn/editors/code/glob-11.1.0 Bump glob from 11.0.1 to 11.1.0 in /editors/code
When we moved over to the book, we lost this.