Improve quality of String#to_slice() deprecation message

This commit is contained in:
Steve Klabnik 2015-01-14 16:05:32 -05:00
parent 6ba9acd8ab
commit 29e5d8d483

View File

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