diff options
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.114 2005/05/16 21:19:00 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.115 2005/05/17 19:49:15 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -780,7 +780,7 @@ static void createmetatable (lua_State *L) { | |||
780 | lua_pushvalue(L, -2); /* string library... */ | 780 | lua_pushvalue(L, -2); /* string library... */ |
781 | lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ | 781 | lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ |
782 | lua_getfield(L, -2, "len"); | 782 | lua_getfield(L, -2, "len"); |
783 | lua_setfield(L, -2, "__siz"); | 783 | lua_setfield(L, -2, "__len"); |
784 | lua_pop(L, 1); /* pop metatable */ | 784 | lua_pop(L, 1); /* pop metatable */ |
785 | } | 785 | } |
786 | 786 | ||