From df5c79e2fc6c6563006346c10044da21d225def9 Mon Sep 17 00:00:00 2001 From: icecream17 Date: Mon, 19 Aug 2024 14:44:51 +0000 Subject: [PATCH] docs: Fix and add docs for `Level` --- src/snippet.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/snippet.rs b/src/snippet.rs index 8e9a3a8..bba089d 100644 --- a/src/snippet.rs +++ b/src/snippet.rs @@ -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, }