From 2d7e2a33d255b4c4a4e253d17cee9fa5e1ed7146 Mon Sep 17 00:00:00 2001 From: Dmitry Demin Date: Mon, 15 Jul 2024 12:04:10 +0200 Subject: [PATCH] Minor fix of comments --- src/builder.rs | 3 +-- src/note_encryption/domain.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 48a10f15e..e7c780460 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -902,8 +902,7 @@ pub struct InProgress { } impl InProgress { - /// 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(self, f: F) -> InProgress where F: FnOnce(P) -> P2, diff --git a/src/note_encryption/domain.rs b/src/note_encryption/domain.rs index 4e69d7a6d..886c9ac54 100644 --- a/src/note_encryption/domain.rs +++ b/src/note_encryption/domain.rs @@ -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()