diff --git a/src/serde/ser.rs b/src/serde/ser.rs index e13e22ec..f1a2ab77 100644 --- a/src/serde/ser.rs +++ b/src/serde/ser.rs @@ -85,9 +85,9 @@ impl DynamicSerializer { /// assert!(value.is::()); /// /// let map = value.cast::(); -/// let point = map.get("d").unwrap().downcast_ref::().unwrap(); -/// assert_eq!(*point.get("x").unwrap().downcast_ref::().unwrap(), 123.456); -/// assert_eq!(*point.get("y").unwrap().downcast_ref::().unwrap(), 999.0); +/// let point = map["d"].read_lock::().unwrap(); +/// assert_eq!(*point["x"].read_lock::().unwrap(), 123.456); +/// assert_eq!(*point["y"].read_lock::().unwrap(), 999.0); /// # } /// # Ok(()) /// # }