diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 10:25:46 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 10:25:46 +0200 |
commit | b4bc1c91e6f271d49c1acf8aa468110d87ba5382 (patch) | |
tree | 283f12409513549448c28102f499a9165f3681cd | |
parent | 31ab712f2e45de567fd699786a49af678a30cd15 (diff) | |
download | markdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.tar.gz markdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.tar.bz2 markdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.zip |
Fix example in readme
Diffstat (limited to '')
-rw-r--r-- | readme.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -95,7 +95,7 @@ Extensions (in this case GFM): extern crate micromark; use micromark::{micromark_with_options, Constructs, Options}; -fn main() { +fn main() -> Result<(), String> { println!( "{}", micromark_with_options( @@ -104,8 +104,10 @@ fn main() { constructs: Constructs::gfm(), ..Options::default() } - ) + )? ); + + Ok(()) } ``` |