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

docs: Rectify typographical inaccuracies #14

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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 hangman/src/main.leo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ circuit Point {

//! 111. For example, can you instantiate a point p, and then negate it.
//! You will need to use field elements, such as 0field, 1field, 2field, ...:
//! When defining a struct such as point, we do `Point{x_1: something, x_2: something}'
//! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}'
// let p = Point{x: 1, y: 1};
// let minus_p = p.ec_negate();
// console.log("the coordinates are {} and {}", minus_p.x, minus_p.y);
Expand Down Expand Up @@ -241,4 +241,4 @@ victory: bool = {};",
game.guesses_left,
game.victory
);
}
}
2 changes: 1 addition & 1 deletion hangman/src/question_1.leo
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ circuit Point {
function main() {
//! 111. For example, can you instantiate a point p, and then negate it.
//! You will need to use field elements, such as 0field, 1field, 2field, ...:
//! When defining a struct such as point, we do `Point{x_1: something, x_2: something}'
//! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}'
let p = Point{x: 1, y: 1};
let minus_p = p.ec_negate();
console.log("the coordinates are {} and {}", minus_p.x, minus_p.y);
Expand Down
4 changes: 2 additions & 2 deletions hangman/src/question_2.leo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ circuit Point {

//! 111. For example, can you instantiate a point p, and then negate it.
//! You will need to use field elements, such as 0field, 1field, 2field, ...:
//! When defining a struct such as point, we do `Point{x_1: something, x_2: something}'
//! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}'
// let p = Point{x: 1, y: 1};
// let minus_p = p.ec_negate();
// console.log("the coordinates are {} and {}", minus_p.x, minus_p.y);
Expand Down Expand Up @@ -82,4 +82,4 @@ circuit Hangman {
// The 'hangman' main function, which selectively creates a new game or runs the `guess_letter` function.
function main() {
let new_game = Hangman {};
}
}
4 changes: 2 additions & 2 deletions hangman/src/question_4.leo
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ circuit Hangman {
// The `zero` group element for Edwards BLS12
const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field };

// x and y coordiantes corresponding to the `one` group element.
// x and y coordinates corresponding to the `one` group element.
const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field;
const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field;

Expand Down Expand Up @@ -128,4 +128,4 @@ function main() {
const word_length = 6u32;
let new_game = Hangman::new_game(word, word_length);
console.log("the game says {}", new_game);
}
}
4 changes: 2 additions & 2 deletions hangman/src/question_5.leo
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ circuit Hangman {
// The `zero` group element for Edwards BLS12
const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field };

// x and y coordiantes corresponding to the `one` group element.
// x and y coordinates corresponding to the `one` group element.
const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field;
const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field;

Expand Down Expand Up @@ -132,4 +132,4 @@ function main() {
let word = "aleons______________";
const word_length = 6u32;
let new_game = Hangman::new_game(word, word_length);
}
}
4 changes: 2 additions & 2 deletions hangman/src/question_6.leo
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ circuit Hangman {
// The `zero` group element for Edwards BLS12
const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field };

// x and y coordiantes corresponding to the `one` group element.
// x and y coordinates corresponding to the `one` group element.
const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field;
const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field;

Expand Down Expand Up @@ -264,4 +264,4 @@ victory: bool = {};",
// r2: [char; 20] = ['_'; 20];
// r3: [char; 10] = ['_'; 10];
// r4: u32 = 10;
// r5: bool = false;
// r5: bool = false;
4 changes: 2 additions & 2 deletions hangman/src/workshop_exercise.leo
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ circuit Hangman {
// The `zero` group element for Edwards BLS12
const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field };

// x and y coordiantes corresponding to the `one` group element.
// x and y coordinates corresponding to the `one` group element.
const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field;
const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field;

Expand Down Expand Up @@ -221,4 +221,4 @@ victory: bool = {};",
game.guesses_left,
game.victory
);
}
}