Skip to content

Commit

Permalink
fix wrong url cairo book chapter (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
chachaleo authored Sep 22, 2023
1 parent 3f405f9 commit 29e7a2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion exercises/enums/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Useful in combination with enums is Cairo's "pattern matching" facility, which m

## Further information

- [Enums](https://cairo-book.github.io/ch05-01-enums.html)
- [Enums](https://cairo-book.github.io/ch06-01-enums.html)
2 changes: 1 addition & 1 deletion exercises/options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Option types are very common in Cairo code, as they have a number of uses:

## Further Information

- [Option Implementation](https://cairo-book.github.io/ch05-01-enums.html#the-option-enum-and-its-advantages)
- [Option Implementation](https://cairo-book.github.io/ch06-01-enums.html#the-option-enum-and-its-advantages)
8 changes: 4 additions & 4 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ You can return values from loops by adding the value you want returned after the
name = "enums1"
path = "exercises/enums/enums1.cairo"
mode = "compile"
hint = "https://cairo-book.github.io/ch05-01-enums.html"
hint = "https://cairo-book.github.io/ch06-01-enums.html"

[[exercises]]
name = "enums2"
Expand All @@ -245,7 +245,7 @@ mode = "compile"
hint = """
You can create enumerations that have different variants with different types
such as no data, structs, a single felt string, tuples, ...etc
https://cairo-book.github.io/ch05-01-enums.html
https://cairo-book.github.io/ch06-01-enums.html
"""

[[exercises]]
Expand All @@ -257,7 +257,7 @@ As a first step, you can define enums to compile this code without errors.
and then create a match expression in `process()`.
Note that you need to deconstruct some message variants
in the match expression to get value in the variant.
https://cairo-book.github.io/ch05-01-enums.html
https://cairo-book.github.io/ch06-01-enums.html
"""

# OPTIONS
Expand All @@ -270,7 +270,7 @@ hint = """
Options can have a Some value, with an inner value, or a None value, without an inner value.
There's multiple ways to get at the inner value, you can use unwrap, or pattern match. Unwrapping
is the easiest, but how do you do it safely so that it doesn't panic in your face later?
https://cairo-book.github.io/ch05-01-enums.html#the-option-enum-and-its-advantages
https://cairo-book.github.io/ch06-01-enums.html#the-option-enum-and-its-advantages
"""

[[exercises]]
Expand Down

0 comments on commit 29e7a2b

Please sign in to comment.