fix: second argument error message

Second argument should be a pointer, not runtime.
This commit is contained in:
Alan Shaw 2020-09-07 12:29:40 +01:00 committed by GitHub
parent 0ad0d4ea11
commit 9d9d2a2a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func (*Invoker) transform(instance Invokee) (nativeCode, error) {
return nil, newErr("first arguemnt should be vmr.Runtime")
}
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 {