THE DOCS ARE TESTS WHAT
This commit is contained in:
parent
78bc7aa8a1
commit
01de555888
@ -11,7 +11,7 @@ macro_rules! impl_vector {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let vec2 = Vector2::new(0, 0);
|
||||
///
|
||||
@ -30,7 +30,7 @@ macro_rules! impl_vector {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let vec2 = Vector2::new(0, 0);
|
||||
/// let array = vec2.to_array();
|
||||
@ -47,7 +47,7 @@ macro_rules! impl_vector {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let vec2 = Vector2::new(0, 0);
|
||||
/// let tuple = vec2.to_tuple();
|
||||
@ -64,7 +64,7 @@ macro_rules! impl_vector {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let vec2 = Vector2::new(1, 2)
|
||||
/// .map(|i| i * 2);
|
||||
@ -88,7 +88,7 @@ macro_rules! impl_vector {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let vec2 = Vector2::from_value(0);
|
||||
///
|
||||
|
@ -5,7 +5,7 @@
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector2;
|
||||
/// use fixed_wide_vectors::vector::Vector2;
|
||||
///
|
||||
/// let mut vec2 = Vector2::new(1, 2);
|
||||
/// vec2 += Vector2::new(1, 2);
|
||||
@ -24,7 +24,7 @@ pub struct Vector2<T> {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector3;
|
||||
/// use fixed_wide_vectors::vector::Vector3;
|
||||
///
|
||||
/// let mut vec3 = Vector3::new(1, 2, 3);
|
||||
/// vec3 += Vector3::new(1, 2, 3);
|
||||
@ -45,7 +45,7 @@ pub struct Vector3<T> {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use fixed_vectors::Vector4;
|
||||
/// use fixed_wide_vectors::vector::Vector4;
|
||||
///
|
||||
/// let mut vec4 = Vector4::new(1, 2, 3, 4);
|
||||
/// vec4 += Vector4::new(1, 2, 3, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user