refactor: Rename module

This commit is contained in:
Ed Page committed 2019-04-16 20:16:31 -06:00
1 parent b6aabc9392
commit f8d42116da
4 files changed
+10 -8

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@ extern crate serde_derive;
mod dict;
pub mod identifier;
pub mod report;
pub mod tokens;
pub use crate::dict::*;
@@ -16,7 +16,7 @@ pub fn process_file(path: &std::path::Path, dictionary: &Dictionary, report: rep
File::open(path)?.read_to_end(&mut buffer)?;
for (line_idx, line) in grep_searcher::LineIter::new(b'\n', &buffer).enumerate() {
let line_num = line_idx + 1;
for token in identifier::tokenize(line) {
for token in tokens::tokenize(line) {
// Correct tokens as-is
if let Some(correction) = dictionary.correct_bytes(token.token) {
let word = String::from_utf8_lossy(token.token);
View File
File renamed without changes.