Skip to content

Commit f3d05f4

Browse files
committed
chore: fix typos in code comments
1 parent aa0b02a commit f3d05f4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bitcoin/src/consensus/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl From<ParseError> for DeserializeError {
5454

5555
/// Error when consensus decoding from an `[IterReader]`.
5656
///
57-
/// This is the same as a `DeserializeError` with an additional variant to return any error yealded
57+
/// This is the same as a `DeserializeError` with an additional variant to return any error yielded
5858
/// by the inner bytes iterator.
5959
#[derive(Debug)]
6060
pub enum DecodeError<E> {

bitcoin/src/taproot/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub struct TaprootBuilder {
417417
// 128 entries (as that would mean more than 128 levels in the tree). The depth of newly added
418418
// entries will always be at least equal to the current size of branch (otherwise it does not
419419
// correspond to a depth-first traversal of a tree). A branch is only empty if no entries have
420-
// ever be processed. A branch having length 1 corresponds to being done.
420+
// ever been processed. A branch having length 1 corresponds to being done.
421421
branch: Vec<Option<NodeInfo>>,
422422
}
423423

hashes/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ macro_rules! sha256t_tag {
6767
/// This will display the hash backwards regardless of what the inner type does. Use `forward`
6868
/// instead of `backward` to force displaying forward.
6969
///
70-
/// You can add arbitrary doc comments or other attributes to the struct or it's field. Note that
70+
/// You can add arbitrary doc comments or other attributes to the struct or its field. Note that
7171
/// the macro already derives [`Copy`], [`Clone`], [`Eq`], [`PartialEq`],
7272
/// [`Hash`](core::hash::Hash), [`Ord`], [`PartialOrd`].
7373
///
@@ -96,7 +96,7 @@ macro_rules! sha256t_tag {
9696
// one. The following code is written the way it is for some specific reasons. If you think you can
9797
// simplify it, I suggest spending your time elsewhere.
9898
//
99-
// If you looks at the code carefully you might ask these questions:
99+
// If you look at the code carefully you might ask these questions:
100100
//
101101
// * Why are attributes using `tt` and not `meta`?!
102102
// * Why are the macros split like that?!

0 commit comments

Comments
 (0)