Fix erroneous function rustdoc
The returns part of the function docs appears to be stale, remove it. Improve wording of rustdocs while we are at it.
This commit is contained in:
parent
5464848f45
commit
f03092c380
|
@ -279,8 +279,7 @@ impl Block {
|
||||||
self.txdata.first()
|
self.txdata.first()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the block height as encoded into the coinbase according to BIP34.
|
/// Returns the block height, as encoded in the coinbase transaction according to BIP34.
|
||||||
/// Returns [None] if not present.
|
|
||||||
pub fn bip34_block_height(&self) -> Result<u64, Bip34Error> {
|
pub fn bip34_block_height(&self) -> Result<u64, Bip34Error> {
|
||||||
// Citing the spec:
|
// Citing the spec:
|
||||||
// Add height as the first item in the coinbase transaction's scriptSig,
|
// Add height as the first item in the coinbase transaction's scriptSig,
|
||||||
|
|
Loading…
Reference in New Issue