comment terminology... fix?

This commit is contained in:
kyren 2018-09-04 19:09:09 -04:00
parent 703601e348
commit add547b356
1 changed files with 2 additions and 1 deletions

View File

@ -829,7 +829,8 @@ impl Lua {
// //
// Box<for<'lua> Fn(&'lua Lua, MultiValue<'lua>) -> Result<MultiValue<'lua>>)> // Box<for<'lua> Fn(&'lua Lua, MultiValue<'lua>) -> Result<MultiValue<'lua>>)>
// //
// So we instead use an outer lifetime, which without the 'static requirement would be unsafe. // So we instead use a caller provided lifetime, which without the 'static requirement would be
// unsafe.
pub(crate) fn create_callback<'lua, 'callback>( pub(crate) fn create_callback<'lua, 'callback>(
&'lua self, &'lua self,
func: Callback<'callback, 'static>, func: Callback<'callback, 'static>,