Updated documentation for getDivisors function

This commit is contained in:
2019-02-07 12:46:40 -05:00
parent 54b8f3c5f0
commit 9c5e055917

View File

@@ -1,7 +1,7 @@
--luaClasses/Algorithms.lua
--Matthew Ellison
-- Created: 2-4-19
--Modified: 2-4-19
--Modified: 2-7-19
--This is a file of algorithms that I have found it useful to keep around at all times
@@ -137,6 +137,7 @@ function getFactors(goalNumber)
return factors;
end
--This is a function the returns all divisors of the number passed to it
function getDivisors(goalNumber)
local divisors = {};
--Start by checking that the number is positive