Standardizing durations

I didn't notice I had settled on 1 second for all three stages in
the end lol.
This commit is contained in:
Jonathan Johnson 2024-01-06 15:05:11 -08:00
parent 8c3eaf4b6b
commit b82208887d
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -40,10 +40,10 @@ fn book() {
} }
guide_examples::book_example!(intro).animated(|animation| { guide_examples::book_example!(intro).animated(|animation| {
animation.wait_for(Duration::from_millis(1_000)).unwrap(); animation.wait_for(Duration::from_secs(1)).unwrap();
animation animation
.animate_text_input("Ferris 🦀", Duration::from_secs(1)) .animate_text_input("Ferris 🦀", Duration::from_secs(1))
.unwrap(); .unwrap();
animation.wait_for(Duration::from_millis(1_000)).unwrap(); animation.wait_for(Duration::from_secs(1)).unwrap();
}); });
} }