From c6b6b4479cbfc00173ac3701bfb99bda60faf5b9 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Thu, 14 May 2020 19:23:47 +0100 Subject: [PATCH] Update changelog and fix doc typo --- .../resources/assets/computercraft/lua/rom/help/changelog.txt | 2 ++ .../resources/assets/computercraft/lua/rom/help/whatsnew.txt | 2 ++ .../assets/computercraft/lua/rom/modules/main/cc/pretty.lua | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/help/changelog.txt b/src/main/resources/assets/computercraft/lua/rom/help/changelog.txt index 3d9f00769..6e6804037 100644 --- a/src/main/resources/assets/computercraft/lua/rom/help/changelog.txt +++ b/src/main/resources/assets/computercraft/lua/rom/help/changelog.txt @@ -7,6 +7,8 @@ * The Lua REPL warns when declaring locals (lupus590, exerro) * Add config to allow using command computers in survival. * Add fs.isDriveRoot - checks if a path is the root of a drive. +* `cc.pretty` can now display a function's arguments and where it was defined. The Lua REPL will show arguments by default. +* Move the shell's `require`/`package` implementation to a separate `cc.require` module. And several bug fixes: * Fix io.lines not accepting arguments. diff --git a/src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt b/src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt index a3cb561de..772f17738 100644 --- a/src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt +++ b/src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt @@ -7,6 +7,8 @@ New features in CC: Tweaked 1.88.0 * The Lua REPL warns when declaring locals (lupus590, exerro) * Add config to allow using command computers in survival. * Add fs.isDriveRoot - checks if a path is the root of a drive. +* `cc.pretty` can now display a function's arguments and where it was defined. The Lua REPL will show arguments by default. +* Move the shell's `require`/`package` implementation to a separate `cc.require` module. And several bug fixes: * Fix io.lines not accepting arguments. diff --git a/src/main/resources/assets/computercraft/lua/rom/modules/main/cc/pretty.lua b/src/main/resources/assets/computercraft/lua/rom/modules/main/cc/pretty.lua index 33fce2c7a..b934aa995 100644 --- a/src/main/resources/assets/computercraft/lua/rom/modules/main/cc/pretty.lua +++ b/src/main/resources/assets/computercraft/lua/rom/modules/main/cc/pretty.lua @@ -425,7 +425,7 @@ end -- @tparam[opt] { function_args = boolean, function_source = boolean } options -- Controls how various properties are displayed. -- - `function_args`: Show the arguments to a function if known (`false` by default). --- - `function_source: Show where the function was defined, instead of +-- - `function_source`: Show where the function was defined, instead of -- `function: xxxxxxxx` (`false` by default). -- @treturn Doc The object formatted as a document. -- @usage Display a table on the screen