Skip to content

Commit fd67858

Browse files
authored
Fix: multiple typos of different importance (#317)
* typo * fixed for convenience * typos * multiple typos
1 parent 63724c1 commit fd67858

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

bin/pre-commit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# This script runs the same checks as the github CI;
4-
# it can be used a a pre-commit hook.
4+
# it can be used as a pre-commit hook.
55

66
set -e
77

cli/progress-bar/src/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl ThreadHandle {
3636
impl Drop for ThreadHandle {
3737
fn drop(&mut self) {
3838
let Self { sender, join_handle } = self;
39-
// SAFETY: struct fields are not accessible once `drop` returns.
39+
// SAFETY: struct fields are inaccessible once `drop` returns.
4040
unsafe { ManuallyDrop::drop(sender) };
4141
let join_handle = unsafe { ManuallyDrop::take(join_handle) };
4242

cli/src/command/prove.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct ProveArgs {
2323
#[command(flatten)]
2424
pub common_args: CommonProveArgs,
2525

26-
/// Send prove request to the network.
26+
/// Send proof request to the network.
2727
#[arg(long, conflicts_with_all = ["k", "pp_file", "impl"])]
2828
pub network: bool,
2929

@@ -54,7 +54,7 @@ pub struct LocalProveArgs {
5454

5555
#[derive(Debug, Args)]
5656
pub struct CommonProveArgs {
57-
/// Build artifacts with the specified profile. "release" is default.
57+
/// Build artifacts with the specified profile. "release" is the default.
5858
#[arg(long, default_value = "release")]
5959
pub profile: String,
6060

core/src/prover/hypernova/error.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ pub use crate::prover::nova::error::ProofError as NovaProofError;
1313
/// Errors related to proof generation
1414
#[derive(Debug)]
1515
pub enum ProofError {
16-
/// An error occured loading or executing program
16+
/// An error occurred while loading or executing the program
1717
NexusVMError(NexusVMError),
1818

19-
/// An error occurred reading file system
19+
/// An error occurred reading the file system
2020
IOError(std::io::Error),
2121

22-
/// An error occured during circuit synthesis
22+
/// An error occurred during circuit synthesis
2323
CircuitError(SynthesisError),
2424

25-
/// An error occured serializing to disk
25+
/// An error occurred serializing to disk
2626
SerError(SerializationError),
2727

2828
/// The witness does not satisfy the constraints as R1CS
@@ -34,13 +34,13 @@ pub enum ProofError {
3434
/// Invalid folding step index
3535
InvalidIndex(usize),
3636

37-
/// Public Parameters do not match circuit
37+
/// Public Parameters do not match the circuit
3838
InvalidPP,
3939

40-
/// An error occured while computing the HyperNova folding
40+
/// An error occurred while computing the HyperNova folding
4141
FoldingError(HNFoldingError),
4242

43-
/// An error occured while setting up a polynomial commitment
43+
/// An error occurred while setting up a polynomial commitment
4444
PolyCommitmentError,
4545

4646
/// The HyperNova prover produced an invalid proof
@@ -95,8 +95,8 @@ impl From<NovaProofError> for ProofError {
9595
NovaProofError::IOError(e) => IOError(e),
9696
NovaProofError::CircuitError(e) => CircuitError(e),
9797
NovaProofError::SerError(e) => SerError(e),
98-
// The above error conversions allow reusing convienence functions
99-
// from the nova implemementation in this crate.
98+
// The above error conversions allow reusing convenience functions
99+
// from the nova implementation in this crate.
100100
//
101101
// The remaining errors are thrown by functions that are specific to
102102
// a proof system, and so shouldn't be shared across the definitions

0 commit comments

Comments
 (0)