We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a98c0 commit 636f3c8Copy full SHA for 636f3c8
1 file changed
src/Element.elm
@@ -1121,7 +1121,7 @@ when bool elm =
1121
1122
{-| Another helper function that defaults to `empty`
1123
1124
- whenJust (Just ("Hi!")) text
+ whenJust text (Just ("Hi!"))
1125
1126
is sugar for
1127
@@ -1132,8 +1132,8 @@ is sugar for
1132
text x
1133
1134
-}
1135
-whenJust : Maybe a -> (a -> Element style variation msg) -> Element style variation msg
1136
-whenJust maybe view =
+whenJust : (a -> Element style variation msg) -> Maybe a -> Element style variation msg
+whenJust view maybe =
1137
case maybe of
1138
Nothing ->
1139
empty
0 commit comments