From 3ade8ab2801c0a90d46fd4b03ce0ecf342c79034 Mon Sep 17 00:00:00 2001 From: "Oliver Scherer @ Cosmian" <52913081+oli-cosmian@users.noreply.github.com> Date: Fri, 26 Jul 2019 13:14:01 +0200 Subject: [PATCH] Update example to lastest version --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a690007b..0c4fe9dd 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,11 @@ Usage ----- ```rust -use annotate_snippets::snippet; +use annotate_snippets::{ + display_list::DisplayList, + formatter::DisplayListFormatter, + snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation}, +}; fn main() { let snippet = Snippet { @@ -72,7 +76,7 @@ with the list of annotations below. }; let dl = DisplayList::from(snippet); - let dlf = DisplayListFormatter::new(true); + let dlf = DisplayListFormatter::new(true, false); dlf.format(&dl); } ```