Merge pull request #29 from johnchapin/patch-1

Fix typo in custom types example
This commit is contained in:
Peter Taoussanis 2013-09-27 07:37:44 -07:00
commit b80fcc8552

View file

@ -125,7 +125,7 @@ There's two default forms of encryption on offer: `:salted` and `:cached`. Each
(defrecord MyType [data]) (defrecord MyType [data])
(nippy/extend-freeze MyType 1 ; A unique type id ∈[1, 128] (nippy/extend-freeze MyType 1 ; A unique type id ∈[1, 128]
[x data-output-steam] [x data-output-stream]
(.writeUTF data-output-stream (:data x))) (.writeUTF data-output-stream (:data x)))
(nippy/extend-thaw 1 ; Same type id (nippy/extend-thaw 1 ; Same type id