Merge rust-bitcoin/rust-bitcoin#2792: Header change from arguments to parameters

9bb75703a1 Header change from arguments to parameters (jamil.lambert)

Pull request description:

  In a few cases a function header documents the parameters of the following function under the heading "Arguments", this has been changed to "Parameters".

  Since the description is at the level of the function definition and not where it is being called parameters seems the more accurate term.

ACKs for top commit:
  apoelstra:
    ACK 9bb75703a1
  tcharding:
    ACK 9bb75703a1

Tree-SHA512: aa24af3fd6e086c09f5e2605fa58289969fc7188f63d7f53c0e325315644f9704d51d4cf526ebfc51b2cf9216155fc3d48cc6bca759dc14bae15e4770de5116e
This commit is contained in:
Andrew Poelstra 2024-05-23 23:04:33 +00:00
commit 613f1fb126
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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.

View File

@ -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