s/’/' to be more tty friendly

This commit is contained in:
Andy Weidenbaum 2022-01-19 20:20:46 +11:00
parent a2a801e69d
commit 3daf079207
2 changed files with 4 additions and 4 deletions

View File

@ -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. Luas `_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. Luas `_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 Luas
/// 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>, Cow<'static, str>>) -> Result<()>;

View File

@ -126,7 +126,7 @@ fn module_reloading_works() {
assert_eq!("hello lume", hello);
// Remove lume module from Luas `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")?;