From f9a9c9fb606c3539a658aee2ea87976e08a315d0 Mon Sep 17 00:00:00 2001 From: Thirds <50671761+thirdsgames@users.noreply.github.com> Date: Fri, 16 Jul 2021 09:26:04 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Yuki Okushi --- src/dot-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))