Teacup rim text: Difference between revisions
m
Simplified Rust code
m (Minor edit) |
m (Simplified Rust code) |
||
Line 1,445:
use std::fs::File;
use std::io::{self, BufRead};
use std::iter::FromIterator;
fn load_dictionary(filename : &str) -> std::io::Result<BTreeSet<String>> {
Line 1,467 ⟶ 1,468:
teacup_words.clear();
let mut is_teacup_word = true;
let mut
for _ in 1..len {
if
is_teacup_word =
if !w.eq(word) && !teacup_words.contains(&w)
}
}
|