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() {
5757 . label ( "arguments to this function are incorrect" ) ,
5858 ) ,
5959 )
60- . element ( Level :: NOTE . pre_styled_title ( & message) ) ,
60+ . element ( Level :: NOTE . message ( & message) ) ,
6161 Group :: with_title ( Level :: NOTE . title ( "function defined here" ) ) . element (
6262 Snippet :: source ( source)
6363 . path ( "$DIR/highlighting.rs" )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl<'a> Level<'a> {
9797 /// used to normalize untrusted text before it is passed to this function.
9898 ///
9999 /// </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 > {
101101 Title {
102102 level : self ,
103103 id : None ,
You can’t perform that action at this time.
0 commit comments