Skip to content

Commit 29e5d8d

Browse files
committed
Improve quality of String#to_slice() deprecation message
1 parent 6ba9acd commit 29e5d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ mod traits {
11501150

11511151
/// Any string that can be represented as a slice
11521152
#[unstable = "Instead of taking this bound generically, this trait will be \
1153-
replaced with one of slicing syntax, deref coercions, or \
1153+
replaced with one of slicing syntax (&foo[]), deref coercions, or \
11541154
a more generic conversion trait"]
11551155
pub trait Str {
11561156
/// Work with `self` as a slice.

0 commit comments

Comments
 (0)