mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
Annotate hash with {.noSideEffect.}
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user