[vlc-commits] lua: io: Fix typo in usage error message

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 17 14:02:11 CEST 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Apr 16 13:09:35 2018 +0200| [2095e5ab1748d26e3389e8e669c9bde4a77d1385] | committer: Hugo Beauzée-Luyssen

lua: io: Fix typo in usage error message

(cherry picked from commit 36f95c617533a54377e0bf14d09fd6842787c5f5)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2095e5ab1748d26e3389e8e669c9bde4a77d1385
---

 modules/lua/libs/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/libs/io.c b/modules/lua/libs/io.c
index d92ae445fd..5d6ac4d65a 100644
--- a/modules/lua/libs/io.c
+++ b/modules/lua/libs/io.c
@@ -211,7 +211,7 @@ static int vlclua_io_open( lua_State *L )
 static int vlclua_io_readdir( lua_State *L )
 {
     if( lua_gettop( L ) < 1 )
-        return luaL_error( L, "Usage: vlc.io.opendir(name)" );
+        return luaL_error( L, "Usage: vlc.io.readdir(name)" );
     const char* psz_path = luaL_checkstring( L, 1 );
     DIR* p_dir =  vlc_opendir( psz_path );
     if ( p_dir == NULL )



More information about the vlc-commits mailing list