Comparison

util/human/io.lua @ 10872:a3f3f42736f2

util.human.io: Fix variable name [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Tue, 02 Jun 2020 08:02:03 +0100
parent 10870:3f1889608f3e
child 10891:8d47858805c9
comparison
equal deleted inserted replaced
10871:e5dee71d0ebb 10872:a3f3f42736f2
80 line = line and line:gsub("\n$",""); 80 line = line and line:gsub("\n$","");
81 return (line and #line > 0) and line or nil; 81 return (line and #line > 0) and line or nil;
82 end 82 end
83 83
84 local function printf(fmt, ...) 84 local function printf(fmt, ...)
85 print(msg:format(...)); 85 print(fmt:format(...));
86 end 86 end
87 87
88 return { 88 return {
89 getchar = getchar; 89 getchar = getchar;
90 getline = getline; 90 getline = getline;