From 3daf079207de8e5483266ca6e81a245b91b2343a Mon Sep 17 00:00:00 2001 From: Andy Weidenbaum Date: Wed, 19 Jan 2022 20:20:46 +1100 Subject: [PATCH] =?UTF-8?q?s/=E2=80=99/'=20to=20be=20more=20tty=20friendly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/searcher.rs | 6 +++--- tests/tests.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/searcher.rs b/src/searcher.rs index f43830d..5ac5013 100644 --- a/src/searcher.rs +++ b/src/searcher.rs @@ -123,7 +123,7 @@ pub struct ClosureSearcher { /// /// 1. An `rlua::Context`, which the closure can do what it wants with. /// - /// 2. An `rlua::Table` containing globals (i.e. Lua’s `_G`), which can be passed + /// 2. An `rlua::Table` containing globals (i.e. Lua's `_G`), which can be passed /// to `Chunk.set_environment()`. /// /// 3. The name of the module to be loaded (`&str`). @@ -187,7 +187,7 @@ pub struct FunctionSearcher { /// /// 1. An `rlua::Context`, which the function body can do what it wants with. /// - /// 2. An `rlua::Table` containing globals (i.e. Lua’s `_G`), which can be passed + /// 2. An `rlua::Table` containing globals (i.e. Lua's `_G`), which can be passed /// to `Chunk.set_environment()`. /// /// 3. The name of the module to be loaded (`&str`). @@ -238,7 +238,7 @@ impl UserData for FunctionSearcher { /// Extend `rlua::Context` to support `require`ing Lua modules by name. pub trait AddSearcher { - /// Add a `HashMap` of Lua modules indexed by module name to Lua’s + /// Add a `HashMap` of Lua modules indexed by module name to Lua's /// `package.searchers` table in an `rlua::Context`, with lookup functionality /// provided by the `rlua_searcher::Searcher` struct. fn add_searcher(&self, modules: HashMap, Cow<'static, str>>) -> Result<()>; diff --git a/tests/tests.rs b/tests/tests.rs index 9639388..3b37820 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -126,7 +126,7 @@ fn module_reloading_works() { assert_eq!("hello lume", hello); - // Remove lume module from Lua’s `package.loaded` cache to facilitate reload. + // Remove lume module from Lua's `package.loaded` cache to facilitate reload. lua.context::<_, rlua::Result<()>>(|lua_ctx| { let globals = lua_ctx.globals(); let loaded: Table = globals.get::<_, Table>("package")?.get("loaded")?;