diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-03-10 14:15:52 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-03-10 14:15:52 -0800 |
commit | ef278ebe0ca134784d8afc00241a20fcc55ff3d0 (patch) | |
tree | a5e2714e69d08447e6d60f918ff658b646c33168 /README.md | |
parent | f9fabf9caa1a04a1ebd89c17581321f22f38e986 (diff) | |
download | spray-json-derivation-ef278ebe0ca134784d8afc00241a20fcc55ff3d0.tar.gz spray-json-derivation-ef278ebe0ca134784d8afc00241a20fcc55ff3d0.tar.bz2 spray-json-derivation-ef278ebe0ca134784d8afc00241a20fcc55ff3d0.zip |
Fix typos
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -93,7 +93,7 @@ message. For example: ```scala import spray.json._ -class X() // not that X is not a case class, hence a format cannot be derived +class X() // note that X is not a case class, hence a format cannot be derived case class Y(x: X) case class Z(y: Y, w: Int) @@ -108,7 +108,10 @@ object MyProtocol extends DefaultJsonProtocol with DerivedFormats { ### Implicit Derived Formats -It is also possible to summon derived formats implicitly by mixing in `ImplicitDerivedFormats`instead of `DerivedFormats`. This makes it possible to use derived formats without explicitly creating them first: +It is also possible to summon derived formats implicitly by mixing in +`ImplicitDerivedFormats`instead of `DerivedFormats`. This makes it +possible to use derived formats without explicitly creating them +first: ```scala import spray.json._ @@ -132,9 +135,9 @@ of drawbacks to consider: 2. Macros that enable format derivation are expanded at every callsite. In other words, the compiler will try to create JSON - formats at every point an implicit RootJsonFormat is required fo a - case class. This can increase compile times and binary size if - formats are required in many locations + formats at every point where an implicit `RootJsonFormat` is + required for a case class. This can increase compile times and + binary size if formats are required in many locations. ### Documentation |