diff options
author | Roland <roland.yonaba@gmail.com> | 2017-12-08 17:46:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 17:46:54 +0300 |
commit | 2336f48df5bcb30ddec116698b50018bc68d4810 (patch) | |
tree | 10671c1f10383df75d7372b50bf6c79dd78471df | |
parent | 494cc5e28b27f88e7159d932e3cee5f1c11f451b (diff) | |
parent | 6f87482bb05f575c6f862fc46a3ec22627cdaf02 (diff) |
Merge pull request #49 from tst2005/tuto-fix1.7.0_dec
Tutorial typo fix
-rw-r--r-- | doc/tutorial.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 984049b..78c11d3 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -73,7 +73,7 @@ Can index and assign in an outer table or in the passed-in table: t = {'a', 'b', 'c'} _.each(t, function(i, v) t[i] = v:rep(2) - print(t[i]) + print(i, t[i]) end) -- => 1 aa @@ -973,7 +973,7 @@ _.flatten({1,{2,3},{4,5,{6,7}}}) -- => "{1,2,3,4,5,6,7}" When given arg "shallow", flatten only at the first level. ```lua -_.flatten({1,{2},{{3}}},true) -- => "{1,{2},{{3}}}" +_.flatten({1,{2},{{3}}},true) -- => "{1,2,{3}}" ```` ### difference (array, array2) |