From 283713a45f96be005d533f9c87b0b519922bdcf0 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Sun, 6 Feb 2022 19:20:58 +0300 Subject: [PATCH] Fixed a comment for mandelbrot function --- Cargo.lock | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {