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@gmail.com>2015-01-15 21:31:20 +0300
committerSoumith Chintala <soumith@gmail.com>2015-01-15 21:31:20 +0300
commit1e4d6e282e85e2bf97a213c26af2ec72612899c4 (patch)
treec10721595ea7536024046b7fcfd7f04c0b0415d5
parent679c6dab55c22e68549b691a2f687afed56bea82 (diff)
parent118141cf60fb4711ccaa2346cbacaf857996e39c (diff)
Merge pull request #3 from GeorgOstrovski/patch-1
Use rawset instead of direct assignment
-rw-r--r--inline.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/inline.lua b/inline.lua
index d40bcae..c4d577b 100644
--- a/inline.lua
+++ b/inline.lua
@@ -437,7 +437,7 @@ function dok.help(symbol, asstring)
end
end
-help = dok.help
+rawset(_G, 'help', dok.help)
--------------------------------------------------------------------------------
-- browse() is a simpler function that simply triggers a browser
@@ -456,7 +456,7 @@ function dok.browse()
qtide = nil
end
-browse = dok.browse
+rawset(_G, 'browse', dok.browse)
--------------------------------------------------------------------------------
-- standard usage function: used to display automated help for functions