summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-14 12:03:41 +0200
committerGitHub <noreply@github.com>2018-06-14 12:03:41 +0200
commit80a1da951d6b6badd71eb7d540fb7c3658a46d00 (patch)
tree5b20d759299b55bf26e2d4a499f1c9f12faa6420
parent89dd1e3592e5f869bd2845c587ddec9c749d4d7b (diff)
parent127556ad63a6486954bc8a020cffeb91490dee53 (diff)
downloadNim-80a1da951d6b6badd71eb7d540fb7c3658a46d00.tar.gz
Merge pull request #8033 from FedericoCeratto/patch-9
Add hint on JSON serialization
-rw-r--r--lib/pure/marshal.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim
index b88c9dd85..b90d2899c 100644
--- a/lib/pure/marshal.nim
+++ b/lib/pure/marshal.nim
@@ -270,6 +270,8 @@ proc store*[T](s: Stream, data: T) =
 
 proc `$$`*[T](x: T): string =
   ## returns a string representation of `x`.
+  ##
+  ## Note: to serialize `x` to JSON use $(%x) from the ``json`` module
   var stored = initIntSet()
   var d: T
   shallowCopy(d, x)