Skip to content

Commit 2e45534

Browse files
authored
Documentation fixup for findMap (#145)
The example defines a `toHouse` but pipes through `toHome`. Edit mistake, I'm sure.
1 parent b2dc8b7 commit 2e45534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/List/Extra.elm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,9 @@ This is particularly useful in cases where you have a complex type in a list, an
702702
viewFirstHomeOfInterest : Viewer -> List Property -> Html msg
703703
viewFirstHomeOfInterest viewer propertiesQuery =
704704
propertiesQuery
705-
|> findMap toHome
705+
|> findMap toHouse
706706
|> Maybe.map homeView
707-
|> Maybe.withDefaultnoHomeView
707+
|> Maybe.withDefault noHomeView
708708
709709
-}
710710
findMap : (a -> Maybe b) -> List a -> Maybe b

0 commit comments

Comments
 (0)