Skip to content

Commit

Permalink
Update example code in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Nov 27, 2023
1 parent 0ec8152 commit 113e248
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vibrato/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//! ```
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! use std::fs::File;
//! use std::io::{BufRead, BufReader};
//!
//! use vibrato::{SystemDictionaryBuilder, Tokenizer};
//!
Expand All @@ -23,7 +22,7 @@
//! // let reader = File::open("path/to/system.dic")?;
//! // let dict = Dictionary::read(reader)?;
//!
//! let tokenizer = vibrato::Tokenizer::new(dict);
//! let tokenizer = Tokenizer::new(dict);
//! let mut worker = tokenizer.new_worker();
//!
//! worker.reset_sentence("京都東京都");
Expand Down

0 comments on commit 113e248

Please sign in to comment.