Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos on dict exercises #164

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/dict/dict1.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// In this exercise, you will map a `felt252` key to a value of type `u32`.

// Your task is to create a `Felt252Dict` containing three elements of type `u32`.
// The first element shoud map the key 'A' to the value 1, the second key 'B' to the value 2
// and the third shoud map 'bob' to the value 3.
// The first element should map the key 'A' to the value 1, the second key 'B' to the value 2
// and the third should map 'bob' to the value 3.
// Make me compile and pass the test!
// Execute `starklings hint dict1` or use the `hint` watch subcommand for a hint.

Expand Down
4 changes: 2 additions & 2 deletions exercises/dict/dict2.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// dict2.cairo
// Dictionaries can be used to simulate dynamic array : the value they store can be accessed and modified.
// Your task is to create a function that mutliplies the elements stored at the indexes 0 to n of a dictionary by 10
// Your task is to create a function that multiplies the elements stored at the indexes 0 to n of a dictionary by 10
// Make me compile and pass the test!
// Execute `starklings hint dict2` or use the `hint` watch subcommand for a hint.

Expand All @@ -9,7 +9,7 @@


fn multiply_element_by_10(ref dict: Felt252Dict<u32>, n: usize) {
//TODO : make a function that mutliplies the elements stored at the indexes 0 to n of a dictionary by 10
//TODO : make a function that multiplies the elements stored at the indexes 0 to n of a dictionary by 10


}
Expand Down