Improve deprecation notice

The deprecation notice for `is_provably_unspendable` contains "is not
very useful" which is a bit presumptuous to tell to users, it may very
well be useful to them. Use the more helpful text that already exists in
rustdoc on the function.
This commit is contained in:
Tobin C. Harding 2024-04-10 11:03:20 +10:00
parent 163bf64fcc
commit 33ebbac4c8
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ impl Script {
/// removed. Use `is_op_return` if you want `OP_RETURN` semantics. /// removed. Use `is_op_return` if you want `OP_RETURN` semantics.
#[deprecated( #[deprecated(
since = "0.32.0", since = "0.32.0",
note = "The method is not very useful, you might want `is_op_return`" note = "The method has potentially confusing semantics and is going to be removed, you might want `is_op_return`"
)] )]
#[inline] #[inline]
pub fn is_provably_unspendable(&self) -> bool { pub fn is_provably_unspendable(&self) -> bool {