Skip to content
Permalink
Browse files

Fix bug in optics example

Changed ```json.asNumber``` to ```j.asNumber``` in Recursively modifying JSON. Now correctly converts the numbers to string.
  • Loading branch information
GrumpySage authored and travisbrown committed Nov 13, 2019
1 parent e7babcf commit 6d2e2dddc42c7b38f5ed35527d5caad8b33bff35
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/src/main/tut/optics.md
@@ -128,7 +128,7 @@ import io.circe.optics.JsonOptics._
import monocle.function.Plated
Plated.transform[Json] { j =>
json.asNumber match {
j.asNumber match {
case Some(n) => Json.fromString(n.toString)
case None => j
}

0 comments on commit 6d2e2dd

Please sign in to comment.
You can’t perform that action at this time.