1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-11 18:00:29 +00:00

Correct minor typo in rednet.receive

Caused attempts to set a time-out value to throw "expected number, got number".
This commit is contained in:
Bomb Bloke 2017-09-13 01:06:59 +10:00 committed by GitHub
parent fa498e74fb
commit 70c6f3498b

View File

@ -113,7 +113,7 @@ function receive( sProtocolFilter, nTimeout )
if sProtocolFilter ~= nil and type( sProtocolFilter ) ~= "string" then
error( "bad argument #1 (expected string, got " .. type( sProtocolFilter ) .. ")", 2 )
end
if nTimeout ~= nil and type( nTimeoutl ) ~= "number" then
if nTimeout ~= nil and type( nTimeout ) ~= "number" then
error( "bad argument #2 (expected number, got " .. type( nTimeout ) .. ")", 2 )
end