Continue renames in comments/strings

This commit is contained in:
Jonas Schievink 2017-07-23 12:29:02 +02:00
parent 8bd0c2c812
commit b47f9e0d76
3 changed files with 6 additions and 6 deletions

View File

@ -18,11 +18,11 @@ pub enum Error {
FromLuaConversionError(String), FromLuaConversionError(String),
/// A `Thread` was resumed and the coroutine was no longer active. /// A `Thread` was resumed and the coroutine was no longer active.
CoroutineInactive, CoroutineInactive,
/// A `LuaUserData` is not the expected type in a borrow. /// An `AnyUserData` is not the expected type in a borrow.
UserDataTypeMismatch, UserDataTypeMismatch,
/// A `LuaUserData` immutable borrow failed because it is already borrowed mutably. /// An `AnyUserData` immutable borrow failed because it is already borrowed mutably.
UserDataBorrowError, UserDataBorrowError,
/// A `LuaUserData` mutable borrow failed because it is already borrowed. /// An `AnyUserData` mutable borrow failed because it is already borrowed.
UserDataBorrowMutError, UserDataBorrowMutError,
/// Lua error that originated as a Error in a callback. The first field is the lua error as /// 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. /// a string, the second field is the Arc holding the original Error.

View File

@ -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 /// 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<F>(&mut self, name: &str, function: F) pub fn add_function<F>(&mut self, name: &str, function: F)
where where
F: 'lua + for<'a> FnMut(&'lua Lua, MultiValue<'lua>) -> Result<MultiValue<'lua>>, F: 'lua + for<'a> FnMut(&'lua Lua, MultiValue<'lua>) -> Result<MultiValue<'lua>>,
@ -914,7 +914,7 @@ impl<'lua> AnyUserData<'lua> {
lua_assert!( lua_assert!(
lua.state, lua.state,
ffi::lua_getmetatable(lua.state, -1) != 0, ffi::lua_getmetatable(lua.state, -1) != 0,
"LuaUserData missing metatable" "AnyUserData missing metatable"
); );
ffi::lua_rawgeti( ffi::lua_rawgeti(

View File

@ -381,7 +381,7 @@ fn test_scope() {
// { // {
// let touter = globals.get::<_, Table>("touter").unwrap(); // let touter = globals.get::<_, Table>("touter").unwrap();
// touter.set("userdata", lua.create_userdata(UserData).unwrap()).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::<UserData>(); // userdata_ref = userdata.borrow::<UserData>();
// } // }
} }