Skip to content

Commit

Permalink
Add missing mut in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Oct 13, 2023
1 parent 9a7e4ad commit d02df66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Example

```rust
use tantivy::tokenizer::*;
let tokenizer = tantivy_jieba::JiebaTokenizer {};
let mut tokenizer = tantivy_jieba::JiebaTokenizer {};
let mut token_stream = tokenizer.token_stream("测试");
assert_eq!(token_stream.next().unwrap().text, "测试");
assert!(token_stream.next().is_none());
Expand Down

0 comments on commit d02df66

Please sign in to comment.