8000 Swap docs of unicode_sentences and split_sentence_bounds · unicode-rs/unicode-segmentation@bb6f52c · GitHub
[go: up one dir, main page]

Skip to content

Commit bb6f52c

Browse files
committed
Swap docs of unicode_sentences and split_sentence_bounds
Seems like those two functions got mixed up when the documentation was written. `unicode_sentences` is the one that filters for alphanumeric characters.
1 parent ec65d22 commit bb6f52c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@ pub trait UnicodeSegmentation {
177177
/// ```
178178
fn split_word_bound_indices<'a>(&'a self) -> UWordBoundIndices<'a>;
179179

180-
/// Returns an iterator over substrings of `self` separated on
181-
/// [UAX#29 sentence boundaries](http://www.unicode.org/reports/tr29/#Sentence_Boundaries).
182-
///
183-
/// The concatenation of the substrings returned by this function is just the original string.
184-
fn unicode_sentences<'a>(&'a self) -> UnicodeSentences<'a>;
185-
186180
/// Returns an iterator over substrings of `self` separated on
187181
/// [UAX#29 sentence boundaries](http://www.unicode.org/reports/tr29/#Sentence_Boundaries).
188182
///
@@ -192,6 +186,12 @@ pub trait UnicodeSegmentation {
192186
/// [Alphabetic](http://unicode.org/reports/tr44/#Alphabetic)
193187
/// property, or with
194188
/// [General_Category=Number](http://unicode.org/reports/tr44/#General_Category_Values).
189+
fn unicode_sentences<'a>(&'a self) -> UnicodeSentences<'a>;
190+
191+
/// Returns an iterator over substrings of `self` separated on
192+
/// [UAX#29 sentence boundaries](http://www.unicode.org/reports/tr29/#Sentence_Boundaries).
193+
///
194+
/// The concatenation of the substrings returned by this function is just the original string.
195195
fn split_sentence_bounds<'a>(&'a self) -> USentenceBounds<'a>;
196196

197197
/// Returns an iterator over substrings of `self`, split on UAX#29 sentence boundaries,

0 commit comments

Comments
 (0)
0