From b1b4361d08170b652eaa3c452cf0cc104b834f40 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 6 Jan 2022 10:19:25 +0800 Subject: [PATCH] Fix documentation. --- src/types/dynamic.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/types/dynamic.rs b/src/types/dynamic.rs index 5bed4a5d..3cb2f857 100644 --- a/src/types/dynamic.rs +++ b/src/types/dynamic.rs @@ -1474,11 +1474,9 @@ impl Dynamic { /// Casting to a [`Dynamic`] just returns as is, but if it contains a shared value, /// it is cloned into a [`Dynamic`] with a normal value. /// - /// /// # Panics or Deadlocks /// - /// Panics if the cast fails (e.g. the type of the actual value is not the - /// same as the specified type). + /// Panics if the cast fails (e.g. the type of the actual value is not the same as the specified type). /// /// Under the `sync` feature, this call may deadlock, or [panic](https://doc.rust-lang.org/std/sync/struct.RwLock.html#panics-1). /// Otherwise, this call panics if the data is currently borrowed for write.