Skip to content

Commit

Permalink
Change removed 'parse_int' to 'int.parse'
Browse files Browse the repository at this point in the history
  • Loading branch information
desk7 authored and lpil committed Apr 10, 2024
1 parent ca0f7cf commit 17298f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheets/gleam-for-python-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ A Result is either:
Handling errors actually means to match the return value against those two scenarios, using a case for instance:

```gleam
case parse_int("123") {
case int.parse("123") {
Error(e) -> io.println("That wasn't an Int")
Ok(i) -> io.println("We parsed the Int")
}
Expand Down

0 comments on commit 17298f4

Please sign in to comment.