From 173adf72529b6abe0cf5364ee1c7831f0530f52e Mon Sep 17 00:00:00 2001 From: chachaleo <49371958+chachaleo@users.noreply.github.com> Date: Wed, 27 Sep 2023 23:24:00 +0700 Subject: [PATCH] update links (#154) --- exercises/arrays/README.md | 2 +- exercises/modules/readme.md | 2 +- exercises/structs/README.md | 6 +++--- exercises/traits/README.md | 2 +- info.toml | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/exercises/arrays/README.md b/exercises/arrays/README.md index 493fa874b..3b1afc118 100644 --- a/exercises/arrays/README.md +++ b/exercises/arrays/README.md @@ -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) diff --git a/exercises/modules/readme.md b/exercises/modules/readme.md index 304603293..5a7808ad1 100644 --- a/exercises/modules/readme.md +++ b/exercises/modules/readme.md @@ -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, diff --git a/exercises/structs/README.md b/exercises/structs/README.md index 8a1da9f69..5f53ef9da 100644 --- a/exercises/structs/README.md +++ b/exercises/structs/README.md @@ -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) diff --git a/exercises/traits/README.md b/exercises/traits/README.md index b5ba456d5..b91d9cf52 100644 --- a/exercises/traits/README.md +++ b/exercises/traits/README.md @@ -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) diff --git a/info.toml b/info.toml index a772243c3..46f0a1e7e 100644 --- a/info.toml +++ b/info.toml @@ -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]] @@ -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" @@ -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 """ @@ -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]]