diff options
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/reference.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index cb64220424f..6ea91d502b7 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1680,8 +1680,8 @@ specific type. Implementations are defined with the keyword `impl`. ``` +# #[derive(Copy)] # struct Point {x: f64, y: f64}; -# impl Copy for Point {} # type Surface = i32; # struct BoundingBox {x: f64, y: f64, width: f64, height: f64}; # trait Shape { fn draw(&self, Surface); fn bounding_box(&self) -> BoundingBox; } |
