Skip to content

Commit a0cb9bf

Browse files
committed
Merge rust-bitcoin#4962: fix: correct grammatical errors in example code comments
c09e5ed fix pronoun "the" to "they" in serde.rs comment (sent deed) 7fd9a90 fix missing 'w' in "these two calls" in script.rs (sent deed) Pull request description: - Fix missing `w` in `these two calls` in script.rs - Fix pronoun `the` to `they` in serde.rs comment ACKs for top commit: apoelstra: ACK c09e5ed; successfully ran local tests Tree-SHA512: c461b97d5c874d3e7381050d4bbe902b4fcbd41127954ea8110c91edde9675cc38bdf156950d5cec8da26103c239e16ec4b4a01bdf9530b88e6c732591d8a902
2 parents 77d821e + c09e5ed commit a0cb9bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bitcoin/examples/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() {
6565
let decoded: WitnessScriptBuf = encode::deserialize_hex(&encoded).unwrap();
6666
assert_eq!(decoded, script_code);
6767

68-
// And we can mix these to calls because both include the length prefix.
68+
// And we can mix these two calls because both include the length prefix.
6969
let encoded = encode::serialize_hex(&script_code);
7070
let decoded = WitnessScriptBuf::from_hex_prefixed(&encoded).unwrap();
7171
assert_eq!(decoded, script_code);

bitcoin/examples/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct Foo {
1919

2020
/// This works but it's little-endian which may be hard to read.
2121
///
22-
/// Integer wrapper types are more readable if the explicitly use a unit.
22+
/// Integer wrapper types are more readable if they explicitly use a unit.
2323
#[serde(with = "consensus::serde::With::<Hex>")]
2424
this: Amount,
2525

0 commit comments

Comments
 (0)