From 20899b4fdc4e5a2e030e1042ada73a79b1c033c4 Mon Sep 17 00:00:00 2001 From: Grvy Date: Sat, 11 May 2024 20:56:26 +0200 Subject: [PATCH 1/2] Fix minor error in 'var' example --- src/library/Core.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/Core.nim b/src/library/Core.nim index f455891669..4a1176a9d0 100644 --- a/src/library/Core.nim +++ b/src/library/Core.nim @@ -1329,7 +1329,7 @@ proc defineLibrary*() = returns = {Any}, example = """ a: 2 - print var 'a ; a + print var 'a ; 2 f: function [x][x+2] print f 10 ; 12 From 879520cdcde5172ef1f709c6836bb80e4fa84616 Mon Sep 17 00:00:00 2001 From: Grvy Date: Sat, 11 May 2024 21:54:26 +0200 Subject: [PATCH 2/2] Fix minor mistake in attribute naming in example string --- src/library/Core.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/Core.nim b/src/library/Core.nim index 4a1176a9d0..9d2fa587da 100644 --- a/src/library/Core.nim +++ b/src/library/Core.nim @@ -466,7 +466,7 @@ proc defineLibrary*() = print "good, the number is positive indeed. let's continue..." .......... - ensure.message: "Wrong calc" -> 0 = 1 + 1 + ensure.that: "Wrong calc" -> 0 = 1 + 1 ; >> Assertion | "Wrong calc": [0 = 1 + 1] ; error | """: