From f6c30a7377c05d91853b8556b5b2117e4e44f5f7 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Sun, 9 Sep 2018 13:35:33 +0300 Subject: [PATCH] Fix typos --- zokrates_cli/src/bin.rs | 2 +- zokrates_core/src/field.rs | 2 +- zokrates_core/src/r1cs.rs | 2 +- zokrates_core/src/standard.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zokrates_cli/src/bin.rs b/zokrates_cli/src/bin.rs index 85d62ef8..a7943ffb 100644 --- a/zokrates_cli/src/bin.rs +++ b/zokrates_cli/src/bin.rs @@ -77,7 +77,7 @@ fn main() { .arg(Arg::with_name("input") .short("i") .long("input") - .help("path of comiled code.") + .help("path of compiled code.") .value_name("FILE") .takes_value(true) .required(false) diff --git a/zokrates_core/src/field.rs b/zokrates_core/src/field.rs index 8e129e29..8080b270 100644 --- a/zokrates_core/src/field.rs +++ b/zokrates_core/src/field.rs @@ -345,7 +345,7 @@ impl<'de> Deserialize<'de> for FieldPrime { } } -/// Calculates the gcd using a iterative implementation of the extended euclidian algorithm. +/// Calculates the gcd using an iterative implementation of the extended euclidian algorithm. /// Returning `(d, s, t)` so that `d = s * a + t * b` /// /// # Arguments diff --git a/zokrates_core/src/r1cs.rs b/zokrates_core/src/r1cs.rs index a2031ec8..7699a6af 100644 --- a/zokrates_core/src/r1cs.rs +++ b/zokrates_core/src/r1cs.rs @@ -43,7 +43,7 @@ fn get_summands(expr: &FlatExpression) -> Vec<&FlatExpression> { } } -/// Returns a `HashMap` containing variables and the number of occurences +/// Returns a `HashMap` containing variables and the number of occurrences /// /// # Arguments /// diff --git a/zokrates_core/src/standard.rs b/zokrates_core/src/standard.rs index 4782be0e..935303c9 100644 --- a/zokrates_core/src/standard.rs +++ b/zokrates_core/src/standard.rs @@ -7,7 +7,7 @@ use reduce::Reduce; use helpers::{DirectiveStatement, Helper, LibsnarkGadgetHelper}; // for r1cs import, can be moved. -// r1cs data strucutre reflecting JSON standard format: +// r1cs data structure reflecting JSON standard format: // { // input_count: count, // # of inputs to pass // outputs: [offset_42, offset_63, offset_55], // indices of the outputs in the witness