Forráskód Böngészése

:bug: fixed complex doc example

Felix Bytow 2 éve
szülő
commit
946447723b
4 módosított fájl, 19 hozzáadás és 8 törlés
  1. 10 6
      CHANGELOG.md
  2. 5 1
      Cargo.toml
  3. 3 0
      README.md
  4. 1 1
      src/types/complex.rs

+ 10 - 6
CHANGELOG.md

@@ -1,19 +1,23 @@
 # Changelog
 
+## Release 0.2.3
+
+- fixed documentation example for `Complex`.
+
 ## Release 0.2.2
 
- - abs, sqrt, sin, cos, sinh and cosh for primitive and complex floats
+- abs, sqrt, sin, cos, sinh and cosh for primitive and complex floats
 
 ## Release 0.2.1
 
- - Forgot to actually make `Complex` visible to the user.
+- Forgot to actually make `Complex` visible to the user.
 
 ## Release 0.2.0
 
- - The `Numeric` trait combining all the traits we need from our numeric values.
- - `Complex` number type with basic math operations.
+- The `Numeric` trait combining all the traits we need from our numeric values.
+- `Complex` number type with basic math operations.
 
 ## Release 0.1.0
 
- - Just a first test release to test publishing to Kellnr.
- - Only feature is the small `Float` trait.
+- Just a first test release to test publishing to Kellnr.
+- Only feature is the small `Float` trait.

+ 5 - 1
Cargo.toml

@@ -1,7 +1,11 @@
 [package]
 name = "lineal"
 authors = ["Felix Bytow <drako@drako.guru>"]
-version = "0.2.2"
+description = "LINEar ALgebra"
+license = "MIT"
+repository = "https://github.com/Drako/lineal/"
+readme = "README.md"
+version = "0.2.3"
 edition = "2021"
 publish = ["crates-drako-guru"]
 

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+# LINEar ALgebra
+
+Published on [crates.drako.guru](https://crates.drako.guru/#/crate?name=lineal).

+ 1 - 1
src/types/complex.rs

@@ -9,7 +9,7 @@ use crate::{Float, Numeric, Primitive};
 /// ```rust
 /// # use lineal::{Complex, Float, Numeric};
 /// let c = Complex { real: 9.0, imag: 0.0 };
-/// assert_eq!(format!("{:?}", c), "[9,0]");
+/// assert_eq!(format!("{:?}", c), "Complex { real: 9.0, imag: 0.0 }");
 ///
 /// let three = c.fsqrt().real;
 /// assert_eq!(three, 3.0);