Merge pull request #3608 from filecoin-project/fix/second-argument-error-message

fix: second argument error message
This commit is contained in:
Łukasz Magiera 2020-09-07 18:06:22 +02:00 committed by GitHub
commit 551ff6a6fb
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 {