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:
parent
163bf64fcc
commit
33ebbac4c8
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue