Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en-us/luau/metatables.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Here's the list of available metamethods:
</tr>
<tr>
<td>`__mode`</td>
<td>Used in weak tables, declaring whether the keys and/or values of a table are weak. Note that references to Roblox instances are never weak. Tables that hold such references will never be garbage collected.</td>
<td>A string making either all of the table's keys (`"k"`), values (`"v"`), or both (`"kv"`) weak. This means that the garbage collector will not count them as references, allowing them to be freed from memory when they're no longer used anywhere else. When a table entry's key or value (as described by the string) is garbage collected, it will be removed since one them is `nil` (or possibly both if using `"kv"`) and the entry will no longer exist. Only tables, functions, buffers (`Library.buffer`), and some [userdata](./userdata.md) are garbage collectable; other [types](./index.md#types) are not and won't be affected. Note that even if you don't explicitly hold a reference to an object in your code, the engine might still be keeping one, for example if a Roblox `Class.Instance` is a descendant of the `Class.DataModel`.</td>
</tr>
<tr>
<td>`__len(table)`</td>
Expand Down