From 076d572831e3298ce3417590aa24c8f337cda430 Mon Sep 17 00:00:00 2001 From: Merith-TK Date: Mon, 22 Feb 2021 03:25:08 -0800 Subject: [PATCH] Fix io.open documentation --- patchwork.md | 7 +++++++ src/main/resources/data/computercraft/lua/rom/apis/io.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/patchwork.md b/patchwork.md index d1eab9d2d..54031812c 100644 --- a/patchwork.md +++ b/patchwork.md @@ -97,3 +97,10 @@ Translations for Swedish Co-authored-by: David Isaksson ``` + +``` +84036d97d99efd8762e0170002060ae3471508bf +Fix io.open documentation + +Well, that was silly. +``` diff --git a/src/main/resources/data/computercraft/lua/rom/apis/io.lua b/src/main/resources/data/computercraft/lua/rom/apis/io.lua index 917faef7f..5ecbdf652 100644 --- a/src/main/resources/data/computercraft/lua/rom/apis/io.lua +++ b/src/main/resources/data/computercraft/lua/rom/apis/io.lua @@ -289,7 +289,7 @@ end -- The `mode` string can be any of the following: -- - **"r"**: Read mode -- - **"w"**: Write mode --- - **"w"**: Append mode +-- - **"a"**: Append mode -- -- The mode may also have a `b` at the end, which opens the file in "binary -- mode". This allows you to read binary files, as well as seek within a file.