Skip to content

Commit

Permalink
update links (shramee#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
chachaleo committed Sep 27, 2023
1 parent 9c7219a commit 173adf7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion exercises/arrays/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ This has to do with the fact that once a memory slot is written to, it cannot be

## Further information

- [Arrays](https://cairo-book.github.io/ch02-06-common-collections.html#array)
- [Arrays](https://book.cairo-lang.org/ch03-01-arrays.html)
- [Core library](https://github.com/starkware-libs/cairo/blob/main/corelib/src/array.cairo)
- [Cairo memory model](https://medium.com/nethermind-eth/cairo-fundamentals-stacked-up-against-evm-and-solidity-1d8d4e12b2c3#2c01)
2 changes: 1 addition & 1 deletion exercises/modules/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Modules

Modules allow creating individual scopes and organise your code better. Read about [modules in cairo book](https://cairo-book.github.io/ch06-02-defining-modules-to-control-scope.html).
Modules allow creating individual scopes and organise your code better. Read about [modules in cairo book](https://cairo-book.github.io/ch07-02-defining-modules-to-control-scope.html).

Here's some code to show modules at play,

Expand Down
6 changes: 3 additions & 3 deletions exercises/structs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ struct Rectangle {

## Further information

- [Defining and instanciating Structs](https://cairo-book.github.io/ch04-01-defining-and-instantiating-structs.html)
- [An example program using structs](https://cairo-book.github.io/ch04-02-an-example-program-using-structs.html)
- [The Method syntax](https://cairo-book.github.io/ch04-03-method-syntax.html)
- [Defining and instanciating Structs](https://cairo-book.github.io/ch05-01-defining-and-instantiating-structs.html)
- [An example program using structs](https://cairo-book.github.io/ch05-02-an-example-program-using-structs.html)
- [The Method syntax](https://cairo-book.github.io/ch05-03-method-syntax.html)
2 changes: 1 addition & 1 deletion exercises/traits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ In this way, traits are somewhat similar to Java interfaces and C++ abstract cla

Because traits indicate shared behavior between data types, they are useful when writing generics.

- [Traits & Impls](https://cairo-book.github.io/ch07-02-traits-in-cairo.html)
- [Traits & Impls](https://cairo-book.github.io/ch08-02-traits-in-cairo.html)
8 changes: 4 additions & 4 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ You'd use the struct like so,
let john = Person { name: 'John', age: 29 };
Read more about structs in the Structs section of this article: https://cairo-book.github.io/ch04-01-defining-and-instantiating-structs.html """
Read more about structs in the Structs section of this article: https://cairo-book.github.io/ch05-01-defining-and-instantiating-structs.html """


[[exercises]]
Expand All @@ -365,7 +365,7 @@ There are some shortcuts that can be taken when destructuring structs,
let Foo {x, y} = foo; // Creates variables x and y with values foo.x and foo.y
let Foo {x: a, y: b} = foo; // Creates variables a and b with values foo.x and foo.y
```
Read more about structs in the Structs section of this article: https://cairo-book.github.io/ch04-01-defining-and-instantiating-structs.html """
Read more about structs in the Structs section of this article: https://cairo-book.github.io/ch05-01-defining-and-instantiating-structs.html """

[[exercises]]
name = "structs3"
Expand All @@ -377,7 +377,7 @@ For is_international: What makes a package international? Seems related to the p
For get_fees: This method takes an additional argument, is there a field in the Package struct that this relates to?
Looking at the test functions will also help you understand more about the syntax.
This section will help you understanding more about methods https://cairo-book.github.io/ch04-03-method-syntax.html
This section will help you understanding more about methods https://cairo-book.github.io/ch05-03-method-syntax.html
"""


Expand Down Expand Up @@ -484,7 +484,7 @@ In the test, you need to instantiate two objects of type `Animal`.
You can call the method of a trait by using the MyTrait::foo() syntax.
How would you instantiate the two objects with AnimalTrait?
Maybe you need to specify the type of the object?
https://cairo-book.github.io/ch07-02-traits-in-cairo.html
https://cairo-book.github.io/ch08-02-traits-in-cairo.html
"""

[[exercises]]
Expand Down

0 comments on commit 173adf7

Please sign in to comment.