aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 58abda6..4a383fe 100644
--- a/README.md
+++ b/README.md
@@ -94,7 +94,7 @@ Dynamize also understands if you wrap associated types in the following types:
Note that since these are resolved recursively you can actually nest these
arbitrarily so e.g. the following also just works:
-```rs
+```rust ignore
fn example(&self) -> Result<Option<Self::Item>, Self::Error>;
```
@@ -103,7 +103,7 @@ fn example(&self) -> Result<Option<Self::Item>, Self::Error>;
In order to be object-safe methods must not have generics, so dynamize simply
moves them to the trait definition:
-```rs
+```rust
trait Gen {
fn foobar<A>(&self, a: A) -> A;
}
@@ -111,7 +111,7 @@ trait Gen {
becomes
-```rs
+```rust
trait DynGen<A> {
fn foobar(&self, a: A) -> A;
}