Skip to content

Fix typos: occurrence, occurred, restricted #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/descriptor/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ fn parse_xkey_deriv<Key>(
// BIP389 defines a new step in the derivation path. This step contains two or more
// derivation indexes in the form '<1;2;3';4h;5H;6>'.
if p.starts_with('<') && p.ends_with('>') {
// There may only be one occurence of this step.
// There may only be one occurrence of this step.
if multipath {
return Some(Err(DescriptorKeyParseError::MalformedKeyData(
MalformedKeyDataKind::MultipleDerivationPathIndexSteps,
Expand Down
2 changes: 1 addition & 1 deletion src/expression/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl fmt::Display for ParseTreeError {
ParseTreeError::MultipleSeparators { separator, pos } => {
write!(
f,
"separator '{}' occured multiple times (second time at position {})",
"separator '{}' occurred multiple times (second time at position {})",
separator, pos
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/miniscript/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ where
/// 3600 or number of stack elements are more than 100.
fn check_witness(_witness: &[Vec<u8>]) -> Result<(), ScriptContextError> {
// Only really need to do this for segwitv0 and legacy
// Bare is already restrcited by standardness rules
// Bare is already restricted by standardness rules
// and would reach these limits.
Ok(())
}
Expand Down Expand Up @@ -895,7 +895,7 @@ impl ScriptContext for NoChecks {

fn check_witness(_witness: &[Vec<u8>]) -> Result<(), ScriptContextError> {
// Only really need to do this for segwitv0 and legacy
// Bare is already restrcited by standardness rules
// Bare is already restricted by standardness rules
// and would reach these limits.
Ok(())
}
Expand Down
Loading