aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 10:25:46 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 10:25:46 +0200
commitb4bc1c91e6f271d49c1acf8aa468110d87ba5382 (patch)
tree283f12409513549448c28102f499a9165f3681cd
parent31ab712f2e45de567fd699786a49af678a30cd15 (diff)
downloadmarkdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.tar.gz
markdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.tar.bz2
markdown-rs-b4bc1c91e6f271d49c1acf8aa468110d87ba5382.zip
Fix example in readme
Diffstat (limited to '')
-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(())
}
```