File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn main() {
57
57
. label ( "arguments to this function are incorrect" ) ,
58
58
) ,
59
59
)
60
- . element ( Level :: NOTE . pre_styled_title ( & message) ) ,
60
+ . element ( Level :: NOTE . message ( & message) ) ,
61
61
Group :: with_title ( Level :: NOTE . title ( "function defined here" ) ) . element (
62
62
Snippet :: source ( source)
63
63
. path ( "$DIR/highlighting.rs" )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl<'a> Level<'a> {
97
97
/// used to normalize untrusted text before it is passed to this function.
98
98
///
99
99
/// </div>
100
- pub fn pre_styled_title ( self , text : impl Into < Cow < ' a , str > > ) -> Title < ' a > {
100
+ pub fn message ( self , text : impl Into < Cow < ' a , str > > ) -> Title < ' a > {
101
101
Title {
102
102
level : self ,
103
103
id : None ,
You can’t perform that action at this time.
0 commit comments