Skip to content

Commit 636f3c8

Browse files
committed
arguments should be flipped
1 parent 01a98c0 commit 636f3c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Element.elm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ when bool elm =
11211121

11221122
{-| Another helper function that defaults to `empty`
11231123
1124-
whenJust (Just ("Hi!")) text
1124+
whenJust text (Just ("Hi!"))
11251125
11261126
is sugar for
11271127
@@ -1132,8 +1132,8 @@ is sugar for
11321132
text x
11331133
11341134
-}
1135-
whenJust : Maybe a -> (a -> Element style variation msg) -> Element style variation msg
1136-
whenJust maybe view =
1135+
whenJust : (a -> Element style variation msg) -> Maybe a -> Element style variation msg
1136+
whenJust view maybe =
11371137
case maybe of
11381138
Nothing ->
11391139
empty

0 commit comments

Comments
 (0)