From 300f47456f87e677d8b66a72d1d49280eeb9ab83 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 9 May 2015 14:27:38 +0100 Subject: [PATCH] Improved description of `lume.extend()` in README --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 19602f5..cb9fef0 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,7 @@ lume.clear(t) -- `t` becomes {} ### lume.extend(t, ...) Copies all the fields from the source tables to the table `t` and returns `t`. -Tables are iterated in order, so the right-most table overrides existing -fields. +If a key exists in multiple tables the right-most table's value is used. ```lua local t = { a = 1, b = 2 } lume.extend(t, { b = 4, c = 6 }) -- `t` becomes { a = 1, b = 4, c = 6 }