summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2016-02-09 08:27:43 +0100
committerdef <dennis@felsin9.de>2016-02-24 19:03:55 +0100
commit887a8d1f0a5f5f88d275b68eb92b15e4d4eccfc7 (patch)
treed15121e644eeec814909f3aa542b0f952de54bd4 /lib
parent510a503f341f616cdf97af1231b2a704778b514e (diff)
downloadNim-887a8d1f0a5f5f88d275b68eb92b15e4d4eccfc7.tar.gz
Annotate hash with {.noSideEffect.}
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/json.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index b53bc3f02..3565e2feb 100644
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -761,7 +761,7 @@ proc `==`* (a,b: JsonNode): bool =
     of JObject:
       a.fields == b.fields
 
-proc hash*(n: Table[string, JsonNode]): Hash
+proc hash*(n: Table[string, JsonNode]): Hash {.noSideEffect.}
 
 proc hash*(n: JsonNode): Hash =
   ## Compute the hash for a JSON node