diff --git a/src/dot-operator.md b/src/dot-operator.md index a3c2701..f04f566 100644 --- a/src/dot-operator.md +++ b/src/dot-operator.md @@ -88,7 +88,7 @@ However, `bar_cloned` actually has type `&Container`. Surely this doesn't mak sense - we added `#[derive(Clone)]` to `Container`, so it must implement `Clone`! Looking closer, the code generated by the `derive` macro is (roughly): -```rust.ignore +```rust,ignore impl Clone for Container where T: Clone { fn clone(&self) -> Self { Self(Arc::clone(&self.0))