Skip to content

Commit 615bf23

Browse files
authored
Rollup merge of rust-lang#76309 - lzutao:indent-note, r=jyn514
Indent a note to make folding work nicer Sublime Text folds code based on indentation. It maybe an unnecessary change, but does it look nicer after that ?
2 parents cc60a29 + 8e0a17a commit 615bf23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/slice/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3357,8 +3357,9 @@ mod private_slice_index {
33573357
on(T = "str", label = "string indices are ranges of `usize`",),
33583358
on(
33593359
all(any(T = "str", T = "&str", T = "std::string::String"), _Self = "{integer}"),
3360-
note = "you can use `.chars().nth()` or `.bytes().nth()`
3361-
see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
3360+
note = "you can use `.chars().nth()` or `.bytes().nth()`\n\
3361+
for more information, see chapter 8 in The Book: \
3362+
<https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
33623363
),
33633364
message = "the type `{T}` cannot be indexed by `{Self}`",
33643365
label = "slice indices are of type `usize` or ranges of `usize`"

0 commit comments

Comments
 (0)