Skip to content

Commit eadfa80

Browse files
committed
docs: typo fix examples/
1 parent 217fbe2 commit eadfa80

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/examples/crypto/foreign-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ assert(z instanceof SmallField.Unreduced);
3333
// note: "unreduced" doesn't usually mean that the underlying witness is larger than the modulus.
3434
// it just means we haven't _proved_ so.. which means a malicious prover _could_ have managed to make it larger.
3535

36-
// unreduced fields can be added and subtracted, but not be used in multiplcation:
36+
// unreduced fields can be added and subtracted, but not be used in multiplication:
3737

3838
z.add(1).sub(x).assertEquals(0); // works
3939

src/examples/zkapps/voting/membership.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Membership_ extends SmartContract {
9494
// Preconditions: Restrict who can vote or who can be a candidate
9595

9696
// since we need to keep this contract "generic", we always assert within a range
97-
// even tho voters cant have a maximum balance, only candidates
97+
// even tho voters can't have a maximum balance, only candidates
9898
// but for a voter we simply use UInt64.MAXINT() as the maximum
9999

100100
let accountUpdate = AccountUpdate.create(member.publicKey);
@@ -123,7 +123,7 @@ export class Membership_ extends SmartContract {
123123
);
124124

125125
/*
126-
we cant really branch the control flow - we will always have to emit an event no matter what,
126+
we can't really branch the control flow - we will always have to emit an event no matter what,
127127
so we emit an empty event if the member already exists
128128
it the member doesn't exist, emit the "real" member
129129
*/

src/examples/zkapps/voting/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ export async function testSet(
503503
}
504504

505505
// the merkle roots of both membership contract should still be the initial ones because publish hasn't been invoked
506-
// therefor the state should not have changes
506+
// therefore the state should not have changes
507507
if (!candidateContract.committedMembers.get().equals(initialRoot).toBoolean()) {
508508
throw Error('candidate merkle root is not the initialroot');
509509
}

0 commit comments

Comments
 (0)