diff --git a/src/rotation.rs b/src/rotation.rs index 87a7ce8..2a45328 100644 --- a/src/rotation.rs +++ b/src/rotation.rs @@ -132,7 +132,7 @@ pub trait Rotation3: Rotation, Point3> /// angle. We can accomplish this quite easily with a two-dimensional rotation /// matrix: /// -/// ~~~ignore +/// ```no_run /// use cgmath::rad; /// use cgmath::Vector2; /// use cgmath::{Matrix, ToMatrix2}; @@ -160,7 +160,7 @@ pub trait Rotation3: Rotation, Point3> /// let rot_half: Basis2 = Rotation2::from_angle(rad(0.25f64 * f64::consts::PI)); /// let unit_y3 = rot_half.concat(&rot_half).rotate_vector(&unit_x); /// assert!(unit_y3.approx_eq(&unit_y2)); -/// ~~~ +/// ``` #[derive(PartialEq, Copy, Clone, RustcEncodable, RustcDecodable)] pub struct Basis2 { mat: Matrix2