Typo in IniFile:GetNumKeys() code sample (#3317)
This commit is contained in:
parent
0a58d1de58
commit
503a79f19a
@ -1236,10 +1236,10 @@ end
|
||||
local IniFile = cIniFile();
|
||||
IniFile:ReadFile("somefile.ini")
|
||||
local NumKeys = IniFile:GetNumKeys();
|
||||
for k = 0, NumKeys do
|
||||
for k = 0, (NumKeys - 1) do
|
||||
local NumValues = IniFile:GetNumValues(k);
|
||||
LOG("key \"" .. IniFile:GetKeyName(k) .. "\" has " .. NumValues .. " values:");
|
||||
for v = 0, NumValues do
|
||||
for v = 0, (NumValues - 1) do
|
||||
LOG(" value \"" .. IniFile:GetValueName(k, v) .. "\".");
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user