mirror of
https://github.com/danbulant/cushy
synced 2026-07-08 12:40:36 +00:00
Fixing doctests
This commit is contained in:
parent
276ba97bf7
commit
8b19c4c304
2 changed files with 4 additions and 2 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
//!
|
//!
|
||||||
//! use cushy::animation::easings::EaseInOutElastic;
|
//! use cushy::animation::easings::EaseInOutElastic;
|
||||||
//! use cushy::animation::{AnimationTarget, Spawn};
|
//! use cushy::animation::{AnimationTarget, Spawn};
|
||||||
//! use cushy::value::Dynamic;
|
//! use cushy::value::{Dynamic, Source};
|
||||||
//!
|
//!
|
||||||
//! let value = Dynamic::new(0);
|
//! let value = Dynamic::new(0);
|
||||||
//! let mut reader = value.create_reader();
|
//! let mut reader = value.create_reader();
|
||||||
|
|
|
||||||
|
|
@ -814,7 +814,9 @@ impl<T> Dynamic<T> {
|
||||||
/// code may produce slightly more readable code.
|
/// code may produce slightly more readable code.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let value = cushy::value::Dynamic::new(1);
|
/// use cushy::value::{Dynamic, Source};
|
||||||
|
///
|
||||||
|
/// let value = Dynamic::new(1);
|
||||||
///
|
///
|
||||||
/// // Using with_clone
|
/// // Using with_clone
|
||||||
/// value.with_clone(|value| {
|
/// value.with_clone(|value| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue