Movatterモバイル変換


[0]ホーム

URL:


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

Commit645aaa9

Browse files
authored
Merge pull request#6 from oli-cosmian/patch-1
Update README example to lastest crate version
2 parents64c57e8 +3ade8ab commit645aaa9

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-
useannotate_snippets::snippet;
37+
useannotate_snippets::{
38+
display_list::DisplayList,
39+
formatter::DisplayListFormatter,
40+
snippet::{Annotation,AnnotationType,Slice,Snippet,SourceAnnotation},
41+
};
3842

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp