From bff462302b3e0a8f68c14cad2806c7ff5005364e Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 24 Jan 2015 16:36:30 -0500 Subject: cleanup: s/impl Copy/#[derive(Copy)]/g --- src/doc/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/doc/reference.md') diff --git a/src/doc/reference.md b/src/doc/reference.md index 3cbd71a1eb3..61deb4f934a 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; } -- cgit 1.4.1-3-g733a5