From ce1174abdbb452c482d7c8e11d8b5c2cdbe05f4d Mon Sep 17 00:00:00 2001 From: flaviut Date: Sun, 26 Oct 2014 05:33:28 -0700 Subject: [PATCH] Updated Common Criticisms (markdown) --- Common-Criticisms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common-Criticisms.md b/Common-Criticisms.md index 8efa755..1cb5218 100644 --- a/Common-Criticisms.md +++ b/Common-Criticisms.md @@ -6,7 +6,7 @@ Possibly. The problem here is that of what mental metaphor is being used. In man ``` nimrod proc foo(input: var T) = ... proc foo(input: ref T) = ... -let a: ref T = ... +let a: ref T = ... # `let` says the value of the pointer is immutable foo(a) # valid, this is Java-style var b: T = ... foo(b) # also valid