dtolnay / dtolnay/unicode-ident

Put example in Readme

Open
#22 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
110
Forks
29
PR merge metrics
No merged PRs in 30d

Description

> The comparison of performance part has me convinced.
>
> Now how do I use this lovely crate? Right, I head over to docs.rs and read through the performance comparison again.
>
> Ooooh, down there are the two functions.

Would it be possible to have a minimal example at the top of the readme that showcases the really sleek API? Something like
```rust
let is_identifier_start = is_xid_start('c');
let is_identifier_continue = is_xid_continue('a');
let is_identifier_continue = is_xid_continue('t');
```

Also, thank you very much for all your awesome work on those lovely Rust projects!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.