From c7684fef328ec9fcd691bbf1fa273201e1a08071 Mon Sep 17 00:00:00 2001 From: kyren Date: Mon, 1 Oct 2018 05:19:57 -0400 Subject: [PATCH] Update comments in guided tour for recent additions --- examples/guided_tour.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/guided_tour.rs b/examples/guided_tour.rs index 208914d..dfe6801 100644 --- a/examples/guided_tour.rs +++ b/examples/guided_tour.rs @@ -150,8 +150,8 @@ fn main() -> Result<()> { // Normally, Rust types passed to `Lua` must be `Send`, because `Lua` itself is `Send`, and must // be `'static`, because there is no way to tell when Lua might garbage collect them. There is, // however, a limited way to lift both of these restrictions. You can call `Lua::scope` to - // create userdata types that do not have to be `Send`, and callback types that do not have to - // be `Send` OR `'static`. + // create userdata and callbacks types that only live for as long as the call to scope, but do + // not have to be `Send` OR `'static`. let mut rust_val = 0;