From f21e9c172f9f15d8d7501e35635e78dc11f5ff58 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 20 May 2005 12:53:42 -0300 Subject: details --- lstrlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrlib.c') 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 */ } -- cgit v1.2.3-55-g6feb