Skip to content

Commit 885fbda

Browse files
committed
Spelling
1 parent 2973b99 commit 885fbda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-str-words.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Rename or replace `str::words` to side-step the ambiguity of “a word”.
1212

1313
The [`str::words`](http://doc.rust-lang.org/std/primitive.str.html#method.words) method
1414
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
1616
or languages with various conventions, including not using spaces at all to separate words.
1717

1818
[Issue #15628](https://github.com/rust-lang/rust/issues/15628) suggests
1919
changing the algorithm to be based on [the *Word Boundaries* section of
2020
*Unicode Standard Annex #29: Unicode Text Segmentation*](http://www.unicode.org/reports/tr29/#Word_Boundaries).
2121

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`:
2323

2424
* It carries significant complexity that may be surprising from something that looks as simple
2525
as a parameter-less “words” method in the standard library.

0 commit comments

Comments
 (0)