@@ -101,7 +101,7 @@ impl Renderer {
101
101
info : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
102
102
note : AnsiColor :: BrightGreen . on_default ( ) . effects ( Effects :: BOLD ) ,
103
103
help : AnsiColor :: BrightCyan . on_default ( ) . effects ( Effects :: BOLD ) ,
104
- line_no : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
104
+ line_num : BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
105
105
emphasis : if USE_WINDOWS_COLORS {
106
106
AnsiColor :: BrightWhite . on_default ( )
107
107
} else {
@@ -178,8 +178,8 @@ impl Renderer {
178
178
}
179
179
180
180
/// 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;
183
183
self
184
184
}
185
185
@@ -2665,7 +2665,7 @@ impl ElementStyle {
2665
2665
ElementStyle :: Addition => stylesheet. addition ,
2666
2666
ElementStyle :: Removal => stylesheet. removal ,
2667
2667
ElementStyle :: LineAndColumn => stylesheet. none ,
2668
- ElementStyle :: LineNumber => stylesheet. line_no ,
2668
+ ElementStyle :: LineNumber => stylesheet. line_num ,
2669
2669
ElementStyle :: Quotation => stylesheet. none ,
2670
2670
ElementStyle :: MainHeaderMsg => stylesheet. emphasis ,
2671
2671
ElementStyle :: UnderlinePrimary | ElementStyle :: LabelPrimary => level. style ( stylesheet) ,
0 commit comments