Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,15 @@ impl<'a> Annotation<'a> {
/// Types of annotations.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Level {
/// Error annotations are displayed using red color and "^" character.
/// Error annotations are displayed in red with "^" characters.
Error,
/// Warning annotations are displayed using blue color and "-" character.
/// Warning annotations are displayed in yellow with "-" characters.
Warning,
/// Info annotations are displayed in blue with "-" characters and the prefix `info: `.
Info,
/// Note annotations are displayed in green with "-" characters and the prefix `note: `.
Note,
/// Help annotations are displayed in blue with "-" characters and the prefix `help: `.
Help,
}

Expand Down
Loading