Header change from arguments to parameters
In a few cases a function header documents the parameters of the following function under the heading"Arguments", this has been changed to "Parameters"
This commit is contained in:
parent
eb28c16d87
commit
9bb75703a1
|
@ -13,7 +13,7 @@ use hex_lit::hex;
|
||||||
|
|
||||||
/// Computes segwit sighash for a transaction input that spends a p2wpkh output with "witness_v0_keyhash" scriptPubKey.type
|
/// Computes segwit sighash for a transaction input that spends a p2wpkh output with "witness_v0_keyhash" scriptPubKey.type
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `raw_tx` - spending tx hex
|
/// * `raw_tx` - spending tx hex
|
||||||
/// * `inp_idx` - spending tx input index
|
/// * `inp_idx` - spending tx input index
|
||||||
|
@ -52,7 +52,7 @@ fn compute_sighash_p2wpkh(raw_tx: &[u8], inp_idx: usize, value: u64) {
|
||||||
|
|
||||||
/// Computes sighash for a legacy multisig transaction input that spends either a p2sh or a p2ms output.
|
/// Computes sighash for a legacy multisig transaction input that spends either a p2sh or a p2ms output.
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `raw_tx` - spending tx hex
|
/// * `raw_tx` - spending tx hex
|
||||||
/// * `inp_idx` - spending tx input inde
|
/// * `inp_idx` - spending tx input inde
|
||||||
|
@ -98,7 +98,7 @@ fn compute_sighash_legacy(raw_tx: &[u8], inp_idx: usize, script_pubkey_bytes_opt
|
||||||
|
|
||||||
/// Computes sighash for a segwit multisig transaction input that spends a p2wsh output with "witness_v0_scripthash" scriptPubKey.type
|
/// Computes sighash for a segwit multisig transaction input that spends a p2wsh output with "witness_v0_scripthash" scriptPubKey.type
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `raw_tx` - spending tx hex
|
/// * `raw_tx` - spending tx hex
|
||||||
/// * `inp_idx` - spending tx input index
|
/// * `inp_idx` - spending tx input index
|
||||||
|
|
|
@ -1303,7 +1303,7 @@ impl From<&Transaction> for Wtxid {
|
||||||
/// a [`TxOut`] when adding another [`TxOut`] to the transaction. This happens when the new
|
/// a [`TxOut`] when adding another [`TxOut`] to the transaction. This happens when the new
|
||||||
/// [`TxOut`] added causes the output length `VarInt` to increase its encoding length.
|
/// [`TxOut`] added causes the output length `VarInt` to increase its encoding length.
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `fee_rate` - the fee rate of the transaction being created.
|
/// * `fee_rate` - the fee rate of the transaction being created.
|
||||||
/// * `satisfaction_weight` - satisfied spending conditions weight.
|
/// * `satisfaction_weight` - satisfied spending conditions weight.
|
||||||
|
@ -1322,7 +1322,7 @@ pub fn effective_value(
|
||||||
/// This function computes the weight of a transaction which is not fully known. All that is needed
|
/// This function computes the weight of a transaction which is not fully known. All that is needed
|
||||||
/// is the lengths of scripts and witness elements.
|
/// is the lengths of scripts and witness elements.
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `inputs` - an iterator which returns `InputWeightPrediction` for each input of the
|
/// * `inputs` - an iterator which returns `InputWeightPrediction` for each input of the
|
||||||
/// to-be-constructed transaction.
|
/// to-be-constructed transaction.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/// The resulting type is public, conditionally implements `std::error::Error` and has a private
|
/// The resulting type is public, conditionally implements `std::error::Error` and has a private
|
||||||
/// `new()` method for convenience.
|
/// `new()` method for convenience.
|
||||||
///
|
///
|
||||||
/// ## Parameters
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `name` - the name of the error type
|
/// * `name` - the name of the error type
|
||||||
/// * `source` - the type of the source type
|
/// * `source` - the type of the source type
|
||||||
|
|
Loading…
Reference in New Issue