Skip to content

Commit

Permalink
Merge pull request elm#450 from jvoigtlaender/doc-remove-signal-map-o…
Browse files Browse the repository at this point in the history
…perator

Remove <~ from documentation examples
  • Loading branch information
process-bot committed Nov 28, 2015
2 parents 09f3dd2 + 418bcbc commit 23287d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Debug.elm
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ That means it's easy to add `Debug.watch` to any value.
Note that calling `Debug.watch` on a signal is not useful. Instead, it needs
to be mapped into the signal (to act on the contained value). So if you want
to watch a timer signal, instead of `Debug.watch "time" <| Time.every 1000`
you need `Debug.watch "time" <~ Time.every 1000`.
to watch a timer signal, instead of `Debug.watch "time" (Time.every 1000)`
you need `Signal.map (Debug.watch "time") (Time.every 1000)`.
-}
watch : String -> a -> a
watch =
Expand Down
2 changes: 1 addition & 1 deletion src/Graphics/Input.elm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ customButton =
flow right [ box, box, box ]
main : Signal Element
main = boxes <~ check.signal
main = Signal.map boxes check.signal
-}
checkbox : (Bool -> Signal.Message) -> Bool -> Element
checkbox =
Expand Down
2 changes: 1 addition & 1 deletion src/Graphics/Input/Field.elm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ to match what they have entered.
nameField : Signal Element
nameField =
field defaultStyle (Signal.message name.address) "Name" <~ name.signal
Signal.map (field defaultStyle (Signal.message name.address) "Name") name.signal
When we use the `field` function, we first give it a visual style. This is
the first argument so that it is easier to define your own custom field
Expand Down

0 comments on commit 23287d8

Please sign in to comment.