Rename run_ondemand to run_on_demand

This commit is contained in:
epimeletes 2023-10-03 23:24:42 +02:00 committed by GitHub
parent c7cf0cfd83
commit ee0db52ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 25 additions and 24 deletions

View file

@ -252,10 +252,10 @@ impl<T: 'static> EventLoop<T> {
where
F: FnMut(Event<T>, &RootELW<T>),
{
self.run_ondemand(event_handler)
self.run_on_demand(event_handler)
}
pub fn run_ondemand<F>(&mut self, mut event_handler: F) -> Result<(), EventLoopError>
pub fn run_on_demand<F>(&mut self, mut event_handler: F) -> Result<(), EventLoopError>
where
F: FnMut(Event<T>, &RootELW<T>),
{