summaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
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 565d913e..79b3ab37 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.152 2010/05/04 17:20:33 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.153 2010/05/24 19:34:57 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*/
@@ -913,7 +913,7 @@ static void createmetatable (lua_State *L) {
913** Open string library 913** Open string library
914*/ 914*/
915LUAMOD_API int luaopen_string (lua_State *L) { 915LUAMOD_API int luaopen_string (lua_State *L) {
916 luaL_register(L, LUA_STRLIBNAME, strlib); 916 luaL_newlib(L, strlib);
917 createmetatable(L); 917 createmetatable(L);
918 return 1; 918 return 1;
919} 919}