From fa7f6c6f5101f6a28beedf29104709fa4054e613 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 18 Apr 2024 22:14:54 +0200 Subject: [PATCH] Fix doc example for new stdio API --- types/stdio.luau | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/types/stdio.luau b/types/stdio.luau index 70a73e0..e6e88a4 100644 --- a/types/stdio.luau +++ b/types/stdio.luau @@ -59,10 +59,8 @@ end stdio.write("All on the same line") stdio.ewrite("\nAnd some error text, too") - -- Reading from stdin, either line-by-line or the entire input - local firstLine = stdio.readLine() - local secondLine = stdio.readLine() - local remaining = stdio.readToEnd() + -- Reading the entire input from stdin + local input = stdio.readToEnd() ``` ]=] local stdio = {}