From 2c13f2f7358c014c72cd53d32bd82bd31eebea0b Mon Sep 17 00:00:00 2001 From: Thanabodee Charoenpiriyakij Date: Thu, 9 Apr 2020 16:05:37 +0700 Subject: [PATCH] Fix profiles/debug_example.lua cannot interprete by lua After run `lua5.1 profiles/debug_example.lua`, I got result: ``` lua5.1: debug_example.lua:41: attempt to call field 'way_function' (a nil value) stack traceback: debug_example.lua:41: in main chunk [C]: ? ``` This is because Debug has not way_function in the module. This changes change it to process_way and it's works!! --- profiles/debug_example.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/debug_example.lua b/profiles/debug_example.lua index 6bfb735ad..5761d0eca 100644 --- a/profiles/debug_example.lua +++ b/profiles/debug_example.lua @@ -38,7 +38,7 @@ local way = { local result = {} -- call the way function -Debug.way_function(way,result) +Debug.process_way(way,result) -- print input and output pprint(way)