Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 645aaa9

Browse files
Merge pull request #6 from oli-cosmian/patch-1
Update README example to lastest crate version
2 parents 64c57e8 + 3ade8ab commit 645aaa9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ Usage
3434
-----
3535

3636
```rust
37-
use annotate_snippets::snippet;
37+
use annotate_snippets::{
38+
display_list::DisplayList,
39+
formatter::DisplayListFormatter,
40+
snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation},
41+
};
3842

3943
fn main() {
4044
let snippet = Snippet {
@@ -72,7 +76,7 @@ with the list of annotations below.
7276
};
7377

7478
let dl = DisplayList::from(snippet);
75-
let dlf = DisplayListFormatter::new(true);
79+
let dlf = DisplayListFormatter::new(true, false);
7680
dlf.format(&dl);
7781
}
7882
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /