Fix loop not reading more than 2 alternate readings.
This commit is contained in:
parent
d067e01bd4
commit
c541922d05
1 changed files with 2 additions and 3 deletions
|
@ -178,11 +178,10 @@ fn print_item(query: &str, value: &Value, output: &mut String) -> Option<usize>
|
||||||
num_of_lines += 2;
|
num_of_lines += 2;
|
||||||
|
|
||||||
*output += &format!(" {}", "Other forms\n".bright_blue());
|
*output += &format!(" {}", "Other forms\n".bright_blue());
|
||||||
|
|
||||||
*output += &format!(" {}", format_form(query, form)?);
|
*output += &format!(" {}", format_form(query, form)?);
|
||||||
|
|
||||||
for form in japanese.get(2).iter() {
|
for i in 2..japanese.len() {
|
||||||
*output += &format!(", {}", format_form(query, form)?);
|
*output += &format!(", {}", format_form(query, japanese.get(i)?)?);
|
||||||
}
|
}
|
||||||
output.push('\n');
|
output.push('\n');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue