diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-05-10 19:53:38 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-05-10 19:53:38 +0100 |
commit | 0bad4a0ff9384c68ce8624e68bbd0bef371bf241 (patch) | |
tree | a5b7835b5860007af943f9ac65bc6a9c1064cb0b /src/table.rs | |
parent | 35b75040768571e57f722b9ad4d75b2986cbee6e (diff) | |
download | mlua-0bad4a0ff9384c68ce8624e68bbd0bef371bf241.zip |
Fix spelling
Diffstat (limited to 'src/table.rs')
-rw-r--r-- | src/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table.rs b/src/table.rs index a8e2385..d03275d 100644 --- a/src/table.rs +++ b/src/table.rs @@ -243,10 +243,10 @@ impl<'lua> Table<'lua> { /// Removes a key from the table. /// /// If `key` is an integer, mlua shifts down the elements from `table[key+1]`, - /// and erases element `table[key]`. The complexity is O(n) in worst case, + /// and erases element `table[key]`. The complexity is O(n) in the worst case, /// where n is the table length. /// - /// For othey key types this is equivalent to setting `table[key] = nil`. + /// For other key types this is equivalent to setting `table[key] = nil`. pub fn raw_remove<K: ToLua<'lua>>(&self, key: K) -> Result<()> { let lua = self.0.lua; let key = key.to_lua(lua)?; @@ -378,7 +378,7 @@ impl<'lua> Table<'lua> { /// Consume this table and return an iterator over all values in the sequence part of the table. /// /// The iterator will yield all values `t[1]`, `t[2]`, and so on, until a `nil` value is - /// encountered. This mirrors the behaviour of Lua's `ipairs` function and will invoke the + /// encountered. This mirrors the behavior of Lua's `ipairs` function and will invoke the /// `__index` metamethod according to the usual rules. However, the deprecated `__ipairs` /// metatable will not be called. /// |