From 63f93853270d8b44ee42b34e5f52e3718b88d563 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 31 Mar 2015 00:04:31 +0200 Subject: Rename mget to `[]` - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string --- tests/stdlib/tmitems.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/stdlib/tmitems.nim') diff --git a/tests/stdlib/tmitems.nim b/tests/stdlib/tmitems.nim index 2c0a0392a..f2307aeb3 100644 --- a/tests/stdlib/tmitems.nim +++ b/tests/stdlib/tmitems.nim @@ -132,5 +132,5 @@ block: """) for x in d.mitems: x = <>Student(Name=x.attrs["Name"] & "foo") - d.mget(1).attrs["Name"] = "bar" + d[1].attrs["Name"] = "bar" echo d -- cgit 1.4.1-2-gfad0