Skip to content

Commit c90fa23

Browse files
authored
penumbra: fix typos (#4977)
This pull request addresses several grammar issues across multiple files in the repository. The changes include corrections such as replacing "a" with "an" where appropriate (e.g., before words starting with vowel sounds) and fixing typos or inconsistencies in documentation and comments. ## Files Updated 1. **`chandelier.rs`** - Fixed: "an superfluous" → "a superfluous." 2. **`path_search.rs`** - Fixed: "a inclusive" → "an inclusive." 3. **`r1cs.rs`** - Fixed: "a individual" → "an individual." 4. **`addresses.md`** - Fixed: "a address" → "an address." 5. **`system_mapping.md`** - Fixed: "an bound" → "a bound." ## Checklist Before Review - [x] Updated grammar errors in all relevant files. - [x] Verified that no other grammatical inconsistencies remain in the affected areas. - [x] Added guiding comments for reviewers to verify changes. ## Testing Notes No code changes affecting functionality were made, so no unit tests were added. These changes only affect comments and documentation, ensuring clarity and accuracy. --------- Signed-off-by: Marco <wudmytrotest200@gmail.com>
1 parent fe075d4 commit c90fa23

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

crates/core/component/dex/src/component/chandelier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub trait Chandelier: StateWrite {
116116
#[tracing::instrument(level = "debug", skip(self))]
117117
async fn record_swap_execution(&mut self, swap: &SwapExecution) {
118118
// Don't record a swap execution if the output amount was zero.
119-
// This is not an superfluous check, as the swap execution could really
119+
// This is not a superfluous check, as the swap execution could really
120120
// have zero output e.g. in the case of a dust swap.
121121
if swap.output.amount == 0u32.into() || swap.input.amount == 0u32.into() {
122122
tracing::debug!(?swap, "skipping swap execution");

crates/core/component/dex/src/component/router/path_search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub trait PathSearch: StateRead + Clone + 'static {
6767
// Note: previously, this branch was a load-bearing termination condition, primarily
6868
// exercised by the arbitrage logic. However, during the course of testnet 53, we
6969
// encountered two bugs that caused this predicate to not be exercised:
70-
// 1. We treated the price limit as a inclusive bound, rather than an exclusive bound.
70+
// 1. We treated the price limit as an inclusive bound, rather than an exclusive bound.
7171
// 2. We relied on an estimate of the end-to-end path price which was lossy (`path.price`).
7272
// The latter is an inherent information limitation, so we now have a redundant check in
7373
// `route_and_fill` which uses the exact price of the route.

crates/crypto/tct/src/r1cs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl ToConstraintField<Fq> for Position {
1212
// The variable created in AllocVar<Position, Fq> is a UInt64, which is a
1313
// Vec of 64 Boolean<Fq> constraints. To construct the corresponding
1414
// public input, we need to convert the u64 into 64 bits, and then
15-
// convert each bit into a individual Fq element.
15+
// convert each bit into an individual Fq element.
1616
let mut field_elements = Vec::<Fq>::new();
1717
let value: u64 = u64::from(*self);
1818
for i in 0..64 {

docs/protocol/src/addresses_keys/addresses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Each payment address has three components:
6262
* the *transmission key* $\mathsf{pk_d}$, a `decaf377` element;
6363
* the *clue key* $\mathsf{ck_d}$, a `decaf377` element.
6464

65-
The diversifier is derived from a address index as described above. The
65+
The diversifier is derived from an address index as described above. The
6666
diversifier $d_0$ with index $0$ is the *default diversifier*, and corresponds
6767
to the *default payment address*.
6868

docs/protocol/src/crypto/fmd/system_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ A consensus rule verifies that clues in transactions have been generated using
3838
the appropriate precision, within a grace period of 10 blocks[^1]. Transactions
3939
with clues generated using the incorrect precision are rejected by the network.
4040

41-
[^1]: This imposes an bound on the latency of signing workflows.
41+
[^1]: This imposes a bound on the latency of signing workflows.

0 commit comments

Comments
 (0)