Skip to content

Commit 2c13f2f

Browse files
committed
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!!
1 parent 15f0ca8 commit 2c13f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiles/debug_example.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ local way = {
3838
local result = {}
3939

4040
-- call the way function
41-
Debug.way_function(way,result)
41+
Debug.process_way(way,result)
4242

4343
-- print input and output
4444
pprint(way)

0 commit comments

Comments
 (0)