From 1f52bc589a915ad086d6ec5a0587975e3b2482c9 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Sun, 3 Mar 2024 23:01:54 +0100 Subject: [PATCH] Fix example code in `README.md` being executed --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa257b8..cab277e 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ to provide a default behaviour as an external function, such as what The following example implements a very simple visitor trait for types able to process a `&str` char-by-char. -```rust +```rust,ignore extern crate blanket; use blanket::blanket; @@ -126,7 +126,7 @@ mod visitor { and then create a default implementation for all of the declared methods, generating the following code: -```rust +```rust,ignore trait Visitor { fn visit_string(&self, s: &str) { visitor::visit_string(self, s)