Selaa lähdekoodia

fix getstackinfos docs

zeromus 9 vuotta sitten
vanhempi
commit
3b217e7e42
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)