Skip to content

Commit ac0b63c

Browse files
authored
docs: fix and add docs for Level enum
1 parent 43a10aa commit ac0b63c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/snippet.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,15 @@ impl<'a> Annotation<'a> {
126126
/// Types of annotations.
127127
#[derive(Debug, Clone, Copy, PartialEq)]
128128
pub enum Level {
129-
/// Error annotations are displayed using red color and "^" character.
129+
/// Error annotations are displayed in red with "^" characters.
130130
Error,
131-
/// Warning annotations are displayed using blue color and "-" character.
131+
/// Warning annotations are displayed in yellow with "-" characters.
132132
Warning,
133+
/// Help annotations are displayed in blue with "-" characters and the prefix `info: `.
133134
Info,
135+
/// Help annotations are displayed in green with "-" characters and the prefix `note: `.
134136
Note,
137+
/// Help annotations are displayed in blue with "-" characters and the prefix `help: `.
135138
Help,
136139
}
137140

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy