fix: second argument error message
Second argument should be a pointer, not runtime.
This commit is contained in:
parent
0ad0d4ea11
commit
9d9d2a2a98
@ -116,7 +116,7 @@ func (*Invoker) transform(instance Invokee) (nativeCode, error) {
|
|||||||
return nil, newErr("first arguemnt should be vmr.Runtime")
|
return nil, newErr("first arguemnt should be vmr.Runtime")
|
||||||
}
|
}
|
||||||
if t.In(1).Kind() != reflect.Ptr {
|
if t.In(1).Kind() != reflect.Ptr {
|
||||||
return nil, newErr("second argument should be Runtime")
|
return nil, newErr("second argument should be of kind reflect.Ptr")
|
||||||
}
|
}
|
||||||
|
|
||||||
if t.NumOut() != 1 {
|
if t.NumOut() != 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user