mirror of https://github.com/yewstack/yew
Simple typo fix: Change "intarval" to "interval" (#1342)
Co-authored-by: Justin Starry <justin.starry@icloud.com>
This commit is contained in:
parent
996574437a
commit
1586dc8cf5
|
@ -37,7 +37,7 @@ pub struct IntervalService {}
|
||||||
|
|
||||||
impl IntervalService {
|
impl IntervalService {
|
||||||
/// Sets interval which will call send a messages returned by a converter
|
/// Sets interval which will call send a messages returned by a converter
|
||||||
/// on every intarval expiration.
|
/// on every interval expiration.
|
||||||
pub fn spawn(duration: Duration, callback: Callback<()>) -> IntervalTask {
|
pub fn spawn(duration: Duration, callback: Callback<()>) -> IntervalTask {
|
||||||
let callback = move || {
|
let callback = move || {
|
||||||
callback.emit(());
|
callback.emit(());
|
||||||
|
|
Loading…
Reference in New Issue