mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
CountTable now returns 0 instead of 'key not found' for get requests.
This commit is contained in:
@@ -11,10 +11,10 @@ Can't access 6
|
||||
Can't access 6
|
||||
10
|
||||
11
|
||||
Can't access 6
|
||||
0
|
||||
10
|
||||
11
|
||||
Can't access 6
|
||||
0
|
||||
10
|
||||
11
|
||||
Can't access 6
|
||||
@@ -85,7 +85,7 @@ block:
|
||||
except KeyError:
|
||||
echo "Can't access 6"
|
||||
echo x[5]
|
||||
x[5] += 1
|
||||
x.inc 5, 1
|
||||
var c = x[5]
|
||||
echo c
|
||||
|
||||
@@ -97,7 +97,7 @@ block:
|
||||
except KeyError:
|
||||
echo "Can't access 6"
|
||||
echo x[5]
|
||||
x[5] += 1
|
||||
x.inc 5, 1
|
||||
var c = x[5]
|
||||
echo c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user