simple errors for lang-dev
fix not using the note char
bendn 2023-09-17
parent a6ed061 · commit bbfe4ca
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fc5dc19..e2af789 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -284,8 +284,8 @@ impl<'s> std::fmt::Display for Error<'s> {
found.clear();
}
- for note in &self.notes {
- cwriteln!(f, "{space:width$} {bold_black}>{reset} {}", note.message)?;
+ for Note { message } in &self.notes {
+ cwriteln!(f, "{space:width$} {bold_black}{}{reset} {message}", self.charset.note)?;
}
Ok(())
}