Skip to content

Commit

Permalink
slightly improve user-dict list display code
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-northlander committed Dec 4, 2024
1 parent 56f177c commit 17f2e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/src/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ fn config_repr(cfg: &Config) -> Result<String, std::fmt::Error> {
match cfg.resolved_user_dicts() {
Ok(dicts) => {
for (i, dic) in dicts.iter().enumerate() {
write!(result, "{}", dic.display())?;
if i + 1 != dicts.len() {
if i != 0 {
write!(result, ", ")?;
}
write!(result, "{}", dic.display())?;
}
}
Err(e) => {
Expand Down

0 comments on commit 17f2e40

Please sign in to comment.