From 9fa967505cf7116e2748fd1ef646754b555f780f Mon Sep 17 00:00:00 2001 From: Peter Glotfelty Date: Sun, 12 Feb 2017 12:53:37 -0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e98037..8fd214a 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Strum has implemented the following macros: Here is an example of the code generated by deriving `EnumString`. - ``` + ```rust extern crate strum; #[macro_use] extern crate strum_macros; #[derive(EnumString)] @@ -186,7 +186,7 @@ applied to a variant by adding #[strum(parameter="value")] to the variant. The generated code will now return the variant with the input string captured as shown below instead of failing. - ```ignore + ```rust,ignore // Replaces this: _ => Err(strum::ParseError::VariantNotFound) // With this in generated code: