Skip to content

Fix cargo.toml version #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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