diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
commit | f21e9c172f9f15d8d7501e35635e78dc11f5ff58 (patch) | |
tree | cb50795d8bceff944dd8f7d75626069491d5e8d0 /lstrlib.c | |
parent | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (diff) | |
download | lua-github-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.gz |
details
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.114 2005/05/16 21:19:00 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.115 2005/05/17 19:49:15 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -780,7 +780,7 @@ static void createmetatable (lua_State *L) { lua_pushvalue(L, -2); /* string library... */ lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ lua_getfield(L, -2, "len"); - lua_setfield(L, -2, "__siz"); + lua_setfield(L, -2, "__len"); lua_pop(L, 1); /* pop metatable */ } |