Skip to content

Commit a80db08

Browse files
committed
Merge rust-bitcoin#5113: chore: fix typos in code comments
f3d05f4 chore: fix typos in code comments (MozirDmitriy) Pull request description: yealded -> yielded no entries have ever be -> no entries have ever been it's field -> its field If you looks -> If you look ACKs for top commit: tcharding: ACK f3d05f4 apoelstra: ACK f3d05f4; successfully ran local tests Tree-SHA512: 8c8a3a64127d177e84b0ef31d9340e7b2e4bc5b9d10974d020f8d30fd84c29469376203d66b10a312a450e57fb8f4a781b47a355262412b5d91b7b8c0314c5ac
2 parents 7d910cd + f3d05f4 commit a80db08

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)