diff --git a/nselib/strict.lua b/nselib/strict.lua index 87b22ba59..bcb88f545 100644 --- a/nselib/strict.lua +++ b/nselib/strict.lua @@ -5,8 +5,9 @@ -- allows a script to add runtime checking so that undeclared globals cause -- an error to be raised. This is useful for finding accidental use of globals -- when local was intended. +-- -- A global variable is considered 'declared' if the script makes an assignment --- to the global name (even nil). +-- to the global name (even nil) in the file scope. -- -- @class module -- @name strict