File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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).
2727pub ( super ) unsafe fn callback_error_ext < F , R > (
2828 state : * mut ffi:: lua_State ,
2929 mut extra : * mut ExtraData ,
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ..
You can’t perform that action at this time.
0 commit comments