very small doc fixes
This commit is contained in:
parent
73306d2286
commit
e6688e1db2
|
@ -20,8 +20,8 @@ default = ["builtin-lua"]
|
||||||
# assumptions about the linked lua library:
|
# assumptions about the linked lua library:
|
||||||
# * LUA_INTEGER is long long
|
# * LUA_INTEGER is long long
|
||||||
# * LUA_NUMBER as double
|
# * LUA_NUMBER as double
|
||||||
# * LUA_EXTRASPACE is sizeof(void*)
|
# * LUA_EXTRASPACE is at least pointer sized and has at least pointer alignment.
|
||||||
# * LUAI_MAXSTACK is 1000000
|
# * LUAI_MAXSTACK is 1_000_000
|
||||||
builtin-lua = ["cc"]
|
builtin-lua = ["cc"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -116,7 +116,7 @@ If you encounter them, a bug report would be very welcome:
|
||||||
`cfg!(debug_assertions)` is true, Lua is built with the `LUA_USE_APICHECK`
|
`cfg!(debug_assertions)` is true, Lua is built with the `LUA_USE_APICHECK`
|
||||||
define set. Any abort caused by this internal Lua API checking is
|
define set. Any abort caused by this internal Lua API checking is
|
||||||
*absolutely* a bug, particularly because without `LUA_USE_APICHECK` it would
|
*absolutely* a bug, particularly because without `LUA_USE_APICHECK` it would
|
||||||
generally be unsafe.
|
generally cause UB.
|
||||||
* Lua C API errors are handled by lonjmp. *ALL* instances where the Lua C API
|
* Lua C API errors are handled by lonjmp. *ALL* instances where the Lua C API
|
||||||
would longjmp should be protected from Rust, except in internal callbacks
|
would longjmp should be protected from Rust, except in internal callbacks
|
||||||
where this is intentional. If you detect that `rlua` is triggering a
|
where this is intentional. If you detect that `rlua` is triggering a
|
||||||
|
@ -128,4 +128,4 @@ If you encounter them, a bug report would be very welcome:
|
||||||
`rlua` instances are supposed to remain fully usable in the face of user
|
`rlua` instances are supposed to remain fully usable in the face of user
|
||||||
triggered panics. This guarantee does NOT extend to panics marked with
|
triggered panics. This guarantee does NOT extend to panics marked with
|
||||||
"rlua internal error" simply because that is already indicative of a
|
"rlua internal error" simply because that is already indicative of a
|
||||||
separate bug, but it may be true in many cases anyway.
|
separate bug.
|
||||||
|
|
|
@ -381,7 +381,7 @@ impl Lua {
|
||||||
|
|
||||||
/// Coerces a Lua value to an integer.
|
/// Coerces a Lua value to an integer.
|
||||||
///
|
///
|
||||||
/// The value must be an integer, or a floating point number or a string that can be converted
|
/// The value must be an integer, or a floating point number, or a string that can be converted
|
||||||
/// to an integer. Refer to the Lua manual for details.
|
/// to an integer. Refer to the Lua manual for details.
|
||||||
pub fn coerce_integer(&self, v: Value) -> Result<Integer> {
|
pub fn coerce_integer(&self, v: Value) -> Result<Integer> {
|
||||||
match v {
|
match v {
|
||||||
|
|
Loading…
Reference in New Issue