Skip to content

Commit a172c02

Browse files
committed
Update set_memory_limit doc
1 parent de2c5cd commit a172c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lua.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl Lua {
492492
unsafe { (*extra.mem_info).used_memory as usize }
493493
}
494494

495-
/// Sets a memory limit on this Lua state.
495+
/// Sets a memory limit (in bytes) on this Lua state.
496496
///
497497
/// Once an allocation occurs that would pass this memory limit,
498498
/// a `Error::MemoryError` is generated instead.

0 commit comments

Comments
 (0)