Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@fb.com>2014-12-15 07:20:19 +0300
committerSoumith Chintala <soumith@fb.com>2014-12-15 07:20:19 +0300
commit679c6dab55c22e68549b691a2f687afed56bea82 (patch)
tree18b12b009b04fb17555387d12c5e2a4f6cb779dd
parent160a23a78ece8070158a3101642f3601e5e33e67 (diff)
removing the behavior 'Calling on undocumented functions executes them'
-rw-r--r--inline.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/inline.lua b/inline.lua
index 1d9e971..d40bcae 100644
--- a/inline.lua
+++ b/inline.lua
@@ -432,11 +432,7 @@ function dok.help(symbol, asstring)
print(inline)
print(style.banner)
else
- if type(symbol) == 'function' or type(symbol) == 'table' then
- pcall(symbol)
- else
- print('undocumented symbol')
- end
+ print('undocumented symbol')
end
end
end