Skip to content
Browse files

Fix example

  • Loading branch information...
1 parent 4a6e82d commit f8834f6c7994cc18467dd1c374f886b8bd4215fc Joni Freeman committed Mar 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/json-scalaz/README.md
View
2 core/json-scalaz/README.md
@@ -50,7 +50,7 @@ Example which adds a new type class instance
}
scala> val p = JsonParser.parse(""" {"name":"joe","age":34,"address":{"street": "Manhattan 2", "zip": "00223" }} """)
- scala> from(p, Person)(field("name"), field("age"), field("address"))
+ scala> Person.applyJSON(field("name"), field("age"), field("address"))(p)
res0: Success(Person(joe,34,Address(Manhattan 2,00223)))
Validation

0 comments on commit f8834f6

Please sign in to comment.
Something went wrong with that request. Please try again.