Skip to content

Commit 8e0a17a

Browse files
tesujiJoshua Nelson
andcommitted
Indent a note to make folding work nicer
Co-authored-by: Joshua Nelson <[email protected]>
1 parent dd16f1f commit 8e0a17a

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
@@ -3358,8 +3358,9 @@ mod private_slice_index {
33583358
on(T = "str", label = "string indices are ranges of `usize`",),
33593359
on(
33603360
all(any(T = "str", T = "&str", T = "std::string::String"), _Self = "{integer}"),
3361-
note = "you can use `.chars().nth()` or `.bytes().nth()`
3362-
see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
3361+
note = "you can use `.chars().nth()` or `.bytes().nth()`\n\
3362+
for more information, see chapter 8 in The Book: \
3363+
<https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
33633364
),
33643365
message = "the type `{T}` cannot be indexed by `{Self}`",
33653366
label = "slice indices are of type `usize` or ranges of `usize`"

0 commit comments

Comments
 (0)