From 2d43ed3eda82b680317caef152d6ee0134c0ad7a Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 7 Jun 2018 22:17:43 +0200 Subject: [PATCH] formatting --- hands-on_dlang.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hands-on_dlang.md b/hands-on_dlang.md index 97f1c44..baeb8d9 100644 --- a/hands-on_dlang.md +++ b/hands-on_dlang.md @@ -1394,11 +1394,11 @@ import std.stdio : writeln; auto sqrt(T)(T x) { enum GoodEnough = 0.01; import std.math : abs; - T z = x*x, old = 0; + T z = x * x, old = 0; int iter; while (abs(z - old) > GoodEnough) { old = z; - z -= ((z*z)-x) / (2*z); + z -= ((z * z) - x) / (2 * z); } return z;