From b4bc1c91e6f271d49c1acf8aa468110d87ba5382 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 8 Sep 2022 10:25:46 +0200 Subject: Fix example in readme --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 9cca1f6..a9fa111 100644 --- a/readme.md +++ b/readme.md @@ -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(()) } ``` -- cgit