diff --git a/Cargo.lock b/Cargo.lock index 5e61b0c..350f4bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -223,7 +223,7 @@ checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" [[package]] name = "mandelplot" -version = "0.1.0" +version = "0.1.1" dependencies = [ "clap", "image", diff --git a/src/main.rs b/src/main.rs index cee3124..ea7ef76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,7 @@ use image::RgbImage; use num::Complex; /// z(n) = z(n-1)^2 + c -/// Returns amount of iterations to decide that given 'c' will escape to infinity +/// Returns amount of iterations to decide that z will escape to infinity fn mandelbrot(c: num::Complex, iterations: u32) -> Option { let mut z: Complex = num::Complex::new(0.0, 0.0); for i in 0..iterations {