Skip to content

Commit 5624d9e

Browse files
authored
Merge pull request #696 from ryantriangles/master
Fix outdated range syntax in documentation
2 parents 8b3c54e + 87cd36b commit 5624d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/docs/syntax.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ answer =
362362
363363
factorial : Int -> Int
364364
factorial n =
365-
List.product [1..n]
365+
List.product (List.range 1 n)
366366
367367
distance : { x : Float, y : Float } -> Float
368368
distance {x,y} =

0 commit comments

Comments
 (0)