Skip to content

Commit

Permalink
Fix example code in README.md being executed
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Mar 3, 2024
1 parent 7411bd1 commit 1f52bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 1f52bc5

Please sign in to comment.