From b47f9e0d764ba843e1f0ac4edd2d17bd63f81a18 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sun, 23 Jul 2017 12:29:02 +0200 Subject: [PATCH] Continue renames in comments/strings --- src/error.rs | 6 +++--- src/lua.rs | 4 ++-- src/tests.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index 835d086..6e81b22 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,11 +18,11 @@ pub enum Error { FromLuaConversionError(String), /// A `Thread` was resumed and the coroutine was no longer active. CoroutineInactive, - /// A `LuaUserData` is not the expected type in a borrow. + /// An `AnyUserData` is not the expected type in a borrow. UserDataTypeMismatch, - /// A `LuaUserData` immutable borrow failed because it is already borrowed mutably. + /// An `AnyUserData` immutable borrow failed because it is already borrowed mutably. UserDataBorrowError, - /// A `LuaUserData` mutable borrow failed because it is already borrowed. + /// An `AnyUserData` mutable borrow failed because it is already borrowed. UserDataBorrowMutError, /// Lua error that originated as a Error in a callback. The first field is the lua error as /// a string, the second field is the Arc holding the original Error. diff --git a/src/lua.rs b/src/lua.rs index 3344018..7559ef7 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -784,7 +784,7 @@ impl<'lua, T: UserData> UserDataMethods<'lua, T> { } /// Add a regular method as a function which accepts generic arguments, the first argument will - /// always be a LuaUserData of type T. + /// always be a `UserData` of type T. pub fn add_function(&mut self, name: &str, function: F) where F: 'lua + for<'a> FnMut(&'lua Lua, MultiValue<'lua>) -> Result>, @@ -914,7 +914,7 @@ impl<'lua> AnyUserData<'lua> { lua_assert!( lua.state, ffi::lua_getmetatable(lua.state, -1) != 0, - "LuaUserData missing metatable" + "AnyUserData missing metatable" ); ffi::lua_rawgeti( diff --git a/src/tests.rs b/src/tests.rs index e5e733d..d6a6c81 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -381,7 +381,7 @@ fn test_scope() { // { // let touter = globals.get::<_, Table>("touter").unwrap(); // touter.set("userdata", lua.create_userdata(UserData).unwrap()).unwrap(); - // let userdata = touter.get::<_, LuaUserData>("userdata").unwrap(); + // let userdata = touter.get::<_, AnyUserData>("userdata").unwrap(); // userdata_ref = userdata.borrow::(); // } }