Fix typos and clarify some comment in blockdata, block, address (#230)
This commit is contained in:
parent
51aba8bb21
commit
51971dd533
|
@ -15,7 +15,7 @@
|
||||||
//! Bitcoin Block
|
//! Bitcoin Block
|
||||||
//!
|
//!
|
||||||
//! A block is a bundle of transactions with a proof-of-work attached,
|
//! A block is a bundle of transactions with a proof-of-work attached,
|
||||||
//! which attaches to an earlier block to form the blockchain. This
|
//! which commits to an earlier block to form the blockchain. This
|
||||||
//! module describes structures and functions needed to describe
|
//! module describes structures and functions needed to describe
|
||||||
//! these blocks and the blockchain.
|
//! these blocks and the blockchain.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
//! Blockdata
|
//! Blockdata
|
||||||
//!
|
//!
|
||||||
//! This module defines structions and functions for storing the blocks and
|
//! This module defines structures and functions for storing the blocks and
|
||||||
//! transactions which make up the Bitcoin system.
|
//! transactions which make up the Bitcoin system.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ impl Address {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a pay to script hash P2SH address from a script
|
/// Creates a pay to script hash P2SH address from a script
|
||||||
/// This address type was introduced with BIP16 and is the popular ty implement multi-sig these days.
|
/// This address type was introduced with BIP16 and is the popular type to implement multi-sig these days.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn p2sh(script: &script::Script, network: Network) -> Address {
|
pub fn p2sh(script: &script::Script, network: Network) -> Address {
|
||||||
Address {
|
Address {
|
||||||
|
|
Loading…
Reference in New Issue