Skip to content

Commit

Permalink
fixed typo by replacing "mapModelWithMsg" with "mapMsgWithModel"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson Williams committed Sep 29, 2020
1 parent 38d3ac2 commit ff1794e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ You may pass any function you want for `equals`; it does not have to be one of t

### Mapping Bindings

Sometimes duplicate mapping code exists across several bindings. The duplicate mappings could be from the parent model to a common child model or it could be the wrapping of a child message in a parent message, which might depend on the parent model. The duplicate mapping code can be extracted and written once using the mapping functions `mapModel`, `mapMsg`, and `mapModelWithMsg`.
Sometimes duplicate mapping code exists across several bindings. The duplicate mappings could be from the parent model to a common child model or it could be the wrapping of a child message in a parent message, which might depend on the parent model. The duplicate mapping code can be extracted and written once using the mapping functions `mapModel`, `mapMsg`, and `mapMsgWithModel`.

#### Example use of `mapModel` and `mapMsg`

Expand Down

0 comments on commit ff1794e

Please sign in to comment.