aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--readme.md6
1 files changed, 4 insertions, 2 deletions
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(())
}
```