[latex3-commits] [git/l3build] master: Spelling of an internal var name (d387ef7)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Dec 10 10:55:28 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/d387ef78fb7566367c4d72f370607a3114c10f53

>---------------------------------------------------------------

commit d387ef78fb7566367c4d72f370607a3114c10f53
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Dec 10 09:55:28 2017 +0000

    Spelling of an internal var name


>---------------------------------------------------------------

d387ef78fb7566367c4d72f370607a3114c10f53
 l3build.lua |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index f7fd462..8021209 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -686,8 +686,8 @@ function tree(path, glob)
     return lfs_attributes(file)["mode"] == "directory"
   end
   local dirs = {["."] = cropdots(path)}
-  for pattern, critereon in gmatch(cropdots(glob), "([^/]+)(/?)") do
-    local critereon = critereon == "/" and is_dir or always_true
+  for pattern, criterion in gmatch(cropdots(glob), "([^/]+)(/?)") do
+    local criterion = criterion == "/" and is_dir or always_true
     function fill(path, dir, table)
       for _, file in ipairs(filelist(dir, pattern)) do
         local fullpath = path .. "/" .. file
@@ -697,7 +697,7 @@ function tree(path, glob)
             or sub(file, 1, 1) ~= ".")
         then
           local fulldir = dir .. "/" .. file
-          if critereon(fulldir) then
+          if criterion(fulldir) then
             table[fullpath] = fulldir
           end
         end





More information about the latex3-commits mailing list