From 7b9a9aac690cec5c77d4d40cbdeded90c12ae73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 14 Mar 2015 22:56:36 +0100 Subject: [PATCH] compile the doctest in rotation.rs; use ``` instead of ~~~ --- src/rotation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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