From c863629a9488a2aa0457ad6bc83079147c43ffaa Mon Sep 17 00:00:00 2001 From: rxi Date: Thu, 27 Feb 2014 20:29:44 +0000 Subject: [PATCH] Fixed more typos in README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5518cea..e12fc3d 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ lume.set({2, 1, 2, "cat", "cat"}) -- Returns {1, 2, cat} ### lume.reduce(t, fn [, first]) Applies `fn` on two arguments cumulative to the items of the array `t`, from left to right, so as to reduce the array to a single value. If the `first` -argument is not supplied the accumulator is initialised to `0` +argument is not supplied the accumulator is initialised to `0`. ```lua lume.reduce({1, 2, 3}, function(a, b) return a + b end) -- Returns 6 ``` @@ -150,7 +150,8 @@ f() -- Prints "Hello" ### lume.serialize(x) Serialises the argument `x` into a string which can be loaded again using `lume.deserialize()`. `x` can be a boolean, number, table or string. Circular -are not handled, all nested tables of `x` are serialised as unique tables. +references are not handled, all nested tables of `x` are serialised as unique +tables. ```lua lume.serialize({a = "test", b = {1, 2, 3}, false}) -- Returns "{[1]=false,["a"]="test",["b"]={[1]=1,[2]=2,[3]=3,},}"