Skip to content

Commit 635798b

Browse files
authored
Merge pull request #966 from vi/patch-1
Hint about cast() in Dynamic::is_fnptr's doc
2 parents e33c57d + f347c06 commit 635798b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types/dynamic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,6 +2288,8 @@ impl Dynamic {
22882288
}
22892289
/// Return `true` if the [`Dynamic`] holds a [`FnPtr`].
22902290
///
2291+
/// Note that there is no accompanying `as_fnptr()` method, use [`cast()`](Self::cast) to obtain the [`FnPtr`].
2292+
///
22912293
/// # Shared Value
22922294
///
22932295
/// Under the `sync` feature, a _shared_ value may deadlock.

0 commit comments

Comments
 (0)