1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

Docs change Duration::new(0, 0) to Duration::ZERO

This commit is contained in:
Ivan Tham 2022-03-18 22:18:54 +08:00 committed by Wez Furlong
parent 29995c7cb3
commit 84007274cf

View File

@ -83,8 +83,8 @@ pub trait Terminal {
/// will not return until an event is available. If wait is /// will not return until an event is available. If wait is
/// `Some(duration)` then `poll_input` will wait up to the given /// `Some(duration)` then `poll_input` will wait up to the given
/// duration for an event before returning with a value of /// duration for an event before returning with a value of
/// `Ok(None)`. If wait is `Some(Duration::new(0, 0))` then /// `Ok(None)`. If wait is `Some(Duration::ZERO)` then the
/// the poll is non-blocking. /// poll is non-blocking.
/// ///
/// The possible values returned as `InputEvent`s depend on the /// The possible values returned as `InputEvent`s depend on the
/// mode of the terminal. Most values are not returned unless /// mode of the terminal. Most values are not returned unless