fix comment -- two entries differ in reading

main
Sarah Allen 2 years ago
parent efdecaee2c
commit 00d5edfa05

@ -8,8 +8,8 @@ fn main() {
let count = jmdict::entries() let count = jmdict::entries()
.filter(|e| { .filter(|e| {
if e.kanji_elements().any(|k| k.text == input) { if e.kanji_elements().any(|k| k.text == input) {
// note two entries have identical Kanji and reading // note two entries have identical Kanji
// yet differ in "sense" not shown in this example // yet differ in reading
println!("--- entry #{} ---", e.number); println!("--- entry #{} ---", e.number);
for kanji in e.kanji_elements() { for kanji in e.kanji_elements() {
println!("kanji element: {}", kanji.text); println!("kanji element: {}", kanji.text);

Loading…
Cancel
Save