Skip to content

Commit 1569395

Browse files
committed
fix various typos in the codebase
1 parent 6882e04 commit 1569395

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/state/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Drop for StateGuard<'_> {
2323
}
2424

2525
// An optimized version of `callback_error` that does not allocate `WrappedFailure` userdata
26-
// and instead reuses unsed values from previous calls (or allocates new).
26+
// and instead reuses unused values from previous calls (or allocates new).
2727
pub(super) unsafe fn callback_error_ext<F, R>(
2828
state: *mut ffi::lua_State,
2929
mut extra: *mut ExtraData,

tests/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fn test_function_dump() -> Result<()> {
214214

215215
#[cfg(feature = "luau")]
216216
#[test]
217-
fn test_finction_coverage() -> Result<()> {
217+
fn test_function_coverage() -> Result<()> {
218218
let lua = Lua::new();
219219

220220
lua.set_compiler(mlua::Compiler::default().set_coverage_level(1));

tests/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fn test_scope_userdata_drop() -> Result<()> {
318318

319319
let ud = lua.globals().get::<AnyUserData>("ud")?;
320320
match ud.borrow_scoped::<MyUserData, _>(|_| Ok::<_, Error>(())) {
321-
Ok(_) => panic!("succesfull borrow for destructed userdata"),
321+
Ok(_) => panic!("successful borrow for destructed userdata"),
322322
Err(Error::UserDataDestructed) => {}
323323
Err(err) => panic!("improper borrow error for destructed userdata: {err:?}"),
324324
}

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ fn test_error() -> Result<()> {
322322
let return_string_error = globals.get::<Function>("return_string_error")?;
323323
assert!(return_string_error.call::<Error>(()).is_ok());
324324

325-
match lua.load("if youre happy and you know it syntax error").exec() {
325+
match lua.load("if you're happy and you know it syntax error").exec() {
326326
Err(Error::SyntaxError {
327327
incomplete_input: false,
328328
..

0 commit comments

Comments
 (0)