Skip to content

Commit a1e9f97

Browse files
authored
Merge pull request #39 from PhilippMDoerner/patch-1
Added more elaborate explanation around dumpHook
2 parents 0278135 + 84ae86c commit a1e9f97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ Gives us:
222222
### `proc dumpHook*()` Can be used to serializer into custom representation.
223223

224224
Just like reading custom data types you can also write data types with `dumpHook*()`.
225+
The `dumpHook()` will receive the incomplete string representation of a given serialization (here `s`).
226+
You will need to add the serialization of your data type (here `v`) to that string.
225227

226228
```nim
227229
type Fraction = object

0 commit comments

Comments
 (0)