move this here, more idiomatic style

This commit is contained in:
Christine Dodrill 2015-06-15 16:13:57 -07:00
parent 65c265cb62
commit 8404630ee7
1 changed files with 9 additions and 8 deletions

View File

@ -9,12 +9,13 @@ class Buffer
table.insert @data, line table.insert @data, line
b = Buffer! with Buffer 10
while true while true
n = io.read! n = io.read!
if n ~= nil if n ~= nil
b\add(n) \add n
else break else
break
for _, i in pairs b\data for _, i in pairs .data
print i print i