mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-30 14:58:04 +03:00
Merge pull request #378 from croddin/patch-1
[Lua/en] Fixed spelling of trig function "sin"
This commit is contained in:
commit
87dd1ef8dd
@ -125,7 +125,7 @@ f = function (x) return x * x end
|
|||||||
|
|
||||||
-- And so are these:
|
-- And so are these:
|
||||||
local function g(x) return math.sin(x) end
|
local function g(x) return math.sin(x) end
|
||||||
local g = function(x) return math.xin(x) end
|
local g = function(x) return math.sin(x) end
|
||||||
-- Equivalent to local function g(x)..., except referring
|
-- Equivalent to local function g(x)..., except referring
|
||||||
-- to g in the function body won't work as expected.
|
-- to g in the function body won't work as expected.
|
||||||
local g; g = function (x) return math.sin(x) end
|
local g; g = function (x) return math.sin(x) end
|
||||||
|
Loading…
Reference in New Issue
Block a user