summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/advanced.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/advanced.rs b/examples/advanced.rs
index ec9fb59c..f6c2a018 100644
--- a/examples/advanced.rs
+++ b/examples/advanced.rs
@@ -1,5 +1,5 @@
/// A program that prints its own source code using the bat library
-use bat::{LineRange, PagingMode, PrettyPrinter, WrappingMode};
+use bat::{PagingMode, PrettyPrinter, WrappingMode};
fn main() {
PrettyPrinter::new()
@@ -8,7 +8,7 @@ fn main() {
.line_numbers(true)
.use_italics(true)
// The following line will be highlighted in the output:
- .highlight(LineRange::new(line!() as usize, line!() as usize))
+ .highlight(line!() as usize)
.theme("1337")
.wrapping_mode(WrappingMode::Character)
.paging_mode(PagingMode::QuitIfOneScreen)