Fixed typos

This commit is contained in:
2021-06-30 17:47:57 -04:00
parent 41d591a69b
commit 8676b15b47

View File

@@ -56,9 +56,9 @@ function Stopwatch:stop()
--Set the time first, for efficiency sake --Set the time first, for efficiency sake
self.stopTime = os.clock(); self.stopTime = os.clock();
--Make sure the clock had been started --Make sure the clock had been started
if(startTime == nil) then if(self.startTime == nil) then
--If not unset the stop time --If not unset the stop time
stopTime = nil; self.stopTime = nil;
end end
end end
@@ -180,7 +180,7 @@ function Stopwatch:getString()
timeString = string.format("%.3f seconds", timeDifference); timeString = string.format("%.3f seconds", timeDifference);
elseif(timeResolution == Stopwatch.timeResolution.minutes) then elseif(timeResolution == Stopwatch.timeResolution.minutes) then
timeString = string.format("%.3f minutes", timeDifference); timeString = string.format("%.3f minutes", timeDifference);
elseif(timeResoltuion == Stopwatch.timeResolution.hours) then elseif(timeResolution == Stopwatch.timeResolution.hours) then
timeString = string.format("%.3f hours", timeDifference); timeString = string.format("%.3f hours", timeDifference);
else else
timeString = "ERROR! TimeResolution = " .. timeResolution; timeString = "ERROR! TimeResolution = " .. timeResolution;