diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 17:29:04 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 17:29:04 -0200 |
| commit | 599f1742c628db70ef84794b3b8b25fdef9e5004 (patch) | |
| tree | 6221729270cb636861de393484c048b955a72726 /ltable.c | |
| parent | 73abfde2ef16223b12cf04800f6e53bfc68ad356 (diff) | |
| download | lua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.gz lua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.bz2 lua-599f1742c628db70ef84794b3b8b25fdef9e5004.zip | |
detail (typo in comments)
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 2.125 2017/06/29 15:06:44 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.126 2017/11/08 14:50:23 roberto Exp roberto $ |
| 3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -685,7 +685,7 @@ static lua_Unsigned hash_search (Table *t, lua_Unsigned j) { | |||
| 685 | ** First, try the array part: if there is an array part and its last | 685 | ** First, try the array part: if there is an array part and its last |
| 686 | ** element is nil, there must be a boundary there; a binary search | 686 | ** element is nil, there must be a boundary there; a binary search |
| 687 | ** finds that boundary. Otherwise, if the hash part is empty or does not | 687 | ** finds that boundary. Otherwise, if the hash part is empty or does not |
| 688 | ** contain 'j + 1', 'j' is a boundary. Othersize, call 'hash_search' | 688 | ** contain 'j + 1', 'j' is a boundary. Otherwize, call 'hash_search' |
| 689 | ** to find a boundary in the hash part. | 689 | ** to find a boundary in the hash part. |
| 690 | */ | 690 | */ |
| 691 | lua_Unsigned luaH_getn (Table *t) { | 691 | lua_Unsigned luaH_getn (Table *t) { |
