Skip to content

Commit

Permalink
Fix doc typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
acoglio committed Dec 9, 2023
1 parent 9ad2a45 commit 0cc2d1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ledger/narwhal/transmission/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ pub enum Transmission<N: Network> {
}

impl<N: Network> From<ProverSolution<N>> for Transmission<N> {
/// Converts the prover solution into an transmission.
/// Converts the prover solution into a transmission.
fn from(solution: ProverSolution<N>) -> Self {
Self::Solution(Data::Object(solution))
}
}

impl<N: Network> From<Transaction<N>> for Transmission<N> {
/// Converts the transaction into an transmission.
/// Converts the transaction into a transmission.
fn from(transaction: Transaction<N>) -> Self {
Self::Transaction(Data::Object(transaction))
}
}

impl<N: Network> From<Data<ProverSolution<N>>> for Transmission<N> {
/// Converts the prover solution into an transmission.
/// Converts the prover solution into a transmission.
fn from(solution: Data<ProverSolution<N>>) -> Self {
Self::Solution(solution)
}
}

impl<N: Network> From<Data<Transaction<N>>> for Transmission<N> {
/// Converts the transaction into an transmission.
/// Converts the transaction into a transmission.
fn from(transaction: Data<Transaction<N>>) -> Self {
Self::Transaction(transaction)
}
Expand Down

0 comments on commit 0cc2d1e

Please sign in to comment.