浏览代码

fix getstackinfos docs

zeromus 9 年之前
父节点
当前提交
3b217e7e42
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/source/reference/language/builtin_functions.rst

+ 1 - 1
doc/source/reference/language/builtin_functions.rst

@@ -105,7 +105,7 @@ returns the stack informations of a given call stack level. returns a table form
         }
     }
 
-level = 0 is the current function, level = 1 is the caller and so on. If the stack level doesn't exist the function returns null.
+level = 0 is getstackinfos() itself! level = 1 is the current function, level = 2 is the caller of the current function, and so on. If the stack level doesn't exist the function returns null.
 
 .. js:function:: newthread(threadfunc)