Skip to content

Commit

Permalink
docs: README misses BufferType argument to Lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux authored Nov 24, 2019
1 parent 5be61b2 commit bcaaebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ Add this to your lib ...
```Rust
extern crate json_tools;

use json_tools::BufferType;
use json_tools::Lexer;

for token in Lexer::new(r#"{ "face": "😂" }"#.bytes()) {
for token in Lexer::new(r#"{ "face": "😂" }"#.bytes(), BufferType::Span) {
println!("{:?}", token);
}
```
Expand Down

0 comments on commit bcaaebb

Please sign in to comment.