Skip to content

Commit

Permalink
Minor fix of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Demin committed Jul 15, 2024
1 parent c4baaa7 commit 2d7e2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,7 @@ pub struct InProgress<P, S: InProgressSignatures> {
}

impl<P, S: InProgressSignatures> InProgress<P, S> {
/// Changes this authorization from one proof type to another.
// FIXME: Change comment to "mutate the proof using the provided function"
/// Mutate the proof using the provided function.
pub fn map_proof<F, P2>(self, f: F) -> InProgress<P2, S>
where
F: FnOnce(P) -> P2,
Expand Down
3 changes: 1 addition & 2 deletions src/note_encryption/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ where
return None;
}

// FIXME: Is the following comment correct and clear?
// The unwraps below are guaranteed to succeed by the assertion above
// The unwraps below are guaranteed to succeed
let diversifier = Diversifier::from_bytes(
plaintext.as_ref()[NOTE_DIVERSIFIER_OFFSET..NOTE_VALUE_OFFSET]
.try_into()
Expand Down

0 comments on commit 2d7e2a3

Please sign in to comment.