mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-23 16:38:22 +00:00
Update comments with current issue link
This commit is contained in:
parent
aa92e5f1d9
commit
28d4641010
@ -25,12 +25,12 @@ proc fromJson(n: JsonNode, argName: string, result: var int) =
|
||||
n.kind.expect(JInt, argName)
|
||||
result = n.getInt()
|
||||
|
||||
# TODO: Why can't this be forward declared? Complains of lack of definition
|
||||
# This can't be forward declared: https://github.com/nim-lang/Nim/issues/7868
|
||||
proc fromJson[T: enum](n: JsonNode, argName: string, result: var T) =
|
||||
n.kind.expect(JInt, argName)
|
||||
result = n.getInt().T
|
||||
|
||||
# TODO: Why can't this be forward declared? Complains of lack of definition
|
||||
# This can't be forward declared: https://github.com/nim-lang/Nim/issues/7868
|
||||
proc fromJson[T: object](n: JsonNode, argName: string, result: var T) =
|
||||
n.kind.expect(JObject, argName)
|
||||
for k, v in fieldpairs(result):
|
||||
|
Loading…
x
Reference in New Issue
Block a user