Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ extern crate unicode_segmentation;
use unicode_segmentation::UnicodeSegmentation;

fn main() {
let s = "a̐éö̲\r\n";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert the sample string changes. Your editor seems to have applied NFC normalization to the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oopsy - that's a issue w the github web editor.

let s = "a̐éö̲\r\n";
let g = UnicodeSegmentation::graphemes(s, true).collect::<Vec<&str>>();
let b: &[_] = &["a̐", "", "ö̲", "\r\n"];
let b: &[_] = &["a̐", "é", "ö̲", "\r\n"];
assert_eq!(g, b);

let s = "The quick (\"brown\") fox can't jump 32.3 feet, right?";
Expand All @@ -40,7 +40,7 @@ to your `Cargo.toml`:

```toml
[dependencies]
unicode-segmentation = "1.1.0"
unicode-segmentation = "1.2.1"
```

# Change Log
Expand Down