summaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-20 12:53:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-20 12:53:42 -0300
commitf21e9c172f9f15d8d7501e35635e78dc11f5ff58 (patch)
treecb50795d8bceff944dd8f7d75626069491d5e8d0 /lstrlib.c
parent67578ec51f1a3ec2c967f15d370067caf9e0b87b (diff)
downloadlua-github-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.gz
details
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 5080caba..83cc45be 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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 */
}