Skip to content

Commit

Permalink
Merge pull request #91 from GoodDaisy/main
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
fjarri authored Jan 28, 2024
2 parents 05f8d8e + 1713937 commit d22b0d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nucypher-core/src/retrieval_kit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct RetrievalKit {
}

impl RetrievalKit {
/// Creates a new retrival kit from a message kit.
/// Creates a new retrieval kit from a message kit.
pub fn from_message_kit(message_kit: &MessageKit) -> Self {
Self {
capsule: message_kit.capsule.clone(),
Expand Down
6 changes: 3 additions & 3 deletions nucypher-core/src/treasure_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl TreasureMap {
assigned_kfrags: impl IntoIterator<Item = (Address, (PublicKey, VerifiedKeyFrag))>,
threshold: u8,
) -> Self {
// Panic here since violation of theis condition indicates a bug on the caller's side.
// Panic here since violation of this condition indicates a bug on the caller's side.
assert!(threshold != 0, "threshold must be non-zero");

// Encrypt each kfrag for an Ursula.
Expand All @@ -60,15 +60,15 @@ impl TreasureMap {
.is_some()
{
// This means there are repeating addresses in the mapping.
// Panic here since violation of theis condition indicates a bug on the caller's side.
// Panic here since violation of this condition indicates a bug on the caller's side.
panic!(
"{}",
format!("Repeating address in assigned_kfrags: {:?}", ursula_address)
)
};
}

// Panic here since violation of theis condition indicates a bug on the caller's side.
// Panic here since violation of this condition indicates a bug on the caller's side.
assert!(
destinations.len() >= threshold as usize,
"threshold cannot be larger than the total number of shares"
Expand Down

0 comments on commit d22b0d5

Please sign in to comment.