Skip to content

Commit cc4eb42

Browse files
dimimari-flutterintulysses4ever
authored andcommitted
chore: Make example follow the description
1 parent c220c15 commit cc4eb42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source_md/starting-out.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ Functions in Haskell don't have to be in any particular order, so it doesn't mat
240240
Now we're going to make a function that multiplies a number by 2 but only if that number is smaller than or equal to 100 because numbers bigger than 100 are big enough as it is!
241241

242242
```{.haskell:hs}
243-
doubleSmallNumber x = if x >= 100
244-
then x
245-
else x*2
243+
doubleSmallNumber x = if x <= 100
244+
then x*2
245+
else x
246246
```
247247

248248
![this is you](assets/images/starting-out/baby.png){.left width=140 height=211}

0 commit comments

Comments
 (0)