Fixing doctests

This commit is contained in:
Jonathan Johnson 2024-01-02 09:18:18 -08:00
parent 276ba97bf7
commit 8b19c4c304
No known key found for this signature in database
GPG key ID: A66D6A34D6620579
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,7 @@
//!
//! use cushy::animation::easings::EaseInOutElastic;
//! use cushy::animation::{AnimationTarget, Spawn};
//! use cushy::value::Dynamic;
//! use cushy::value::{Dynamic, Source};
//!
//! let value = Dynamic::new(0);
//! let mut reader = value.create_reader();

View file

@ -814,7 +814,9 @@ impl<T> Dynamic<T> {
/// code may produce slightly more readable code.
///
/// ```rust
/// let value = cushy::value::Dynamic::new(1);
/// use cushy::value::{Dynamic, Source};
///
/// let value = Dynamic::new(1);
///
/// // Using with_clone
/// value.with_clone(|value| {