aboutsummaryrefslogtreecommitdiffstats
path: root/examples/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/lib.rs b/examples/lib.rs
index fe4f9ef..17524b7 100644
--- a/examples/lib.rs
+++ b/examples/lib.rs
@@ -1,7 +1,7 @@
extern crate micromark;
use micromark::{micromark, micromark_with_options, Constructs, Options};
-fn main() {
+fn main() -> Result<(), String> {
// Turn on debugging.
// You can show it with `RUST_LOG=debug cargo run --example lib`
env_logger::init();
@@ -32,7 +32,7 @@ fn main() {
gfm_tagfilter: true,
..Options::default()
}
- )
+ )?
);
// Support other extensions that are not in CommonMark.
@@ -47,6 +47,8 @@ fn main() {
},
..Options::default()
}
- )
+ )?
);
+
+ Ok(())
}