We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683bea7 commit eb0d16dCopy full SHA for eb0d16d
src/level.rs
@@ -64,6 +64,15 @@ impl<'a> Level<'a> {
64
/// not allowed to be passed to this function.
65
///
66
/// </div>
67
+ ///
68
+ /// # Example
69
70
+ /// ```rust
71
+ /// # use annotate_snippets::{Group, Snippet, AnnotationKind, Level};
72
+ /// let input = &[
73
+ /// Group::with_title(Level::ERROR.title("mismatched types").id("E0308"))
74
+ /// ];
75
+ /// ```
76
pub fn title(self, text: impl Into<Cow<'a, str>>) -> Title<'a> {
77
Title {
78
level: self,
0 commit comments