Skip to content

Commit 39df7c1

Browse files
authored
Merge pull request rust-lang#20 from yoshuawuyts/print-main-example
print from main example in readme
2 parents 4f2502f + 28b2cd7 commit 39df7c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ with the list of annotations below.
7777

7878
let dl = DisplayList::from(snippet);
7979
let dlf = DisplayListFormatter::new(true, false);
80-
dlf.format(&dl);
80+
println!("{}", dlf.format(&dl));
8181
}
8282
```
8383

0 commit comments

Comments
 (0)