From 7c79dbb8ad31840bf798e40c9a92a2a8f48cd843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Sat, 5 Feb 2022 12:10:12 +0100 Subject: [PATCH] add missing global --- ch02.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch02.jl b/ch02.jl index 58c01dc..c6f4818 100644 --- a/ch02.jl +++ b/ch02.jl @@ -196,7 +196,7 @@ y s = 0 for v in y - s += v + global s += v end s s / length(y)