Skip to content

Commit 2265e4d

Browse files
author
Jaime Terreu
committed
Make foldr example code match commented return
1 parent 65cea00 commit 2265e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dict.elm

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ foldl func acc dict =
534534
535535
import Dict exposing (Dict)
536536
537-
getAges : Dict String User -> List String
537+
getAges : Dict String User -> List Int
538538
getAges users =
539539
Dict.foldr addAge [] users
540540
541-
addAge : String -> User -> List String -> List String
541+
addAge : String -> User -> List Int -> List Int
542542
addAge _ user ages =
543543
user.age :: ages
544544

0 commit comments

Comments
 (0)