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!!
This commit is contained in:
parent
15f0ca8dda
commit
2c13f2f735
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user