Unstabilise words for now.

It is not totally clear if we should just use whitespace, or if the full
unicode word-breaking algorithm is more correct. If there is demand we
can reconsider this decision (and consider the precise algorithm to use
in detail).

cc #15628.
This commit is contained in:
Huon Wilson 2015-02-13 14:11:06 +11:00
parent 39b463f153
commit 3d9528a8d8

View File

@ -1285,7 +1285,8 @@ pub trait StrExt: Index<RangeFull, Output = str> {
/// let v: Vec<&str> = some_words.words().collect();
/// assert_eq!(v, vec!["Mary", "had", "a", "little", "lamb"]);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[unstable(feature = "str_words",
reason = "the precise algorithm to use is unclear")]
fn words(&self) -> Words {
UnicodeStr::words(&self[])
}