diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:02 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:02 +0530 |
| commit | 51ff9e82ec4ffe4d80765707e7348f34cecdc250 (patch) | |
| tree | a71aba9870dda909a76530b8765da538c6c2907b /src/doc | |
| parent | 8418725b0daf6defc98137695e4fcc660f3cdb8f (diff) | |
| parent | bff462302b3e0a8f68c14cad2806c7ff5005364e (diff) | |
| download | rust-51ff9e82ec4ffe4d80765707e7348f34cecdc250.tar.gz rust-51ff9e82ec4ffe4d80765707e7348f34cecdc250.zip | |
Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
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; } |
