@@ -101,7 +101,7 @@ impl Renderer {
101101 info : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
102102 note : AnsiColor :: BrightGreen . on_default ( ) . effects ( Effects :: BOLD ) ,
103103 help : AnsiColor :: BrightCyan . on_default ( ) . effects ( Effects :: BOLD ) ,
104- line_no : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
104+ line_num : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
105105 emphasis : if USE_WINDOWS_COLORS {
106106 AnsiColor :: BrightWhite . on_default ( )
107107 } else {
@@ -178,8 +178,8 @@ impl Renderer {
178178 }
179179
180180 /// Set the output style for line numbers
181- pub const fn line_no ( mut self , style : Style ) -> Self {
182- self . stylesheet . line_no = style;
181+ pub const fn line_num ( mut self , style : Style ) -> Self {
182+ self . stylesheet . line_num = style;
183183 self
184184 }
185185
@@ -2665,7 +2665,7 @@ impl ElementStyle {
26652665 ElementStyle :: Addition => stylesheet. addition ,
26662666 ElementStyle :: Removal => stylesheet. removal ,
26672667 ElementStyle :: LineAndColumn => stylesheet. none ,
2668- ElementStyle :: LineNumber => stylesheet. line_no ,
2668+ ElementStyle :: LineNumber => stylesheet. line_num ,
26692669 ElementStyle :: Quotation => stylesheet. none ,
26702670 ElementStyle :: MainHeaderMsg => stylesheet. emphasis ,
26712671 ElementStyle :: UnderlinePrimary | ElementStyle :: LabelPrimary => level. style ( stylesheet) ,
0 commit comments