File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ Rename or replace `str::words` to side-step the ambiguity of “a word”.
12
12
13
13
The [ ` str::words ` ] ( http://doc.rust-lang.org/std/primitive.str.html#method.words ) method
14
14
is currently marked ` #[unstable(reason = "the precise algorithm to use is unclear")] ` .
15
- Indeed, the concept of “a word” is not easy to define in precense of punctuation
15
+ Indeed, the concept of “a word” is not easy to define in presence of punctuation
16
16
or languages with various conventions, including not using spaces at all to separate words.
17
17
18
18
[ Issue #15628 ] ( https://github.com/rust-lang/rust/issues/15628 ) suggests
19
19
changing the algorithm to be based on [ the * Word Boundaries* section of
20
20
* Unicode Standard Annex #29 : Unicode Text Segmentation* ] ( http://www.unicode.org/reports/tr29/#Word_Boundaries ) .
21
21
22
- While a Rust implemention of UAX #29 would be useful, it belong on crates.io more than in ` std ` :
22
+ While a Rust implementation of UAX #29 would be useful, it belong on crates.io more than in ` std ` :
23
23
24
24
* It carries significant complexity that may be surprising from something that looks as simple
25
25
as a parameter-less “words” method in the standard library.
You can’t perform that action at this time.
0 commit comments