mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: automatically move (some) referenced objects to heap (#9873)
This commit is contained in:
@ -35,7 +35,7 @@ fn print_help_for_command(help_cmd Command) ? {
|
||||
mut found := false
|
||||
for sub_cmd in cmd.commands {
|
||||
if sub_cmd.name == arg {
|
||||
cmd = &sub_cmd
|
||||
cmd = unsafe { &sub_cmd }
|
||||
found = true
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user