Merge pull request #453 from waynewyang/fix-annotation-for-initactor-exec

fix annotation for Initactor.Exec
This commit is contained in:
Whyrusleeping 2019-10-23 12:15:40 +08:00 committed by GitHub
commit c6165ac654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ func (ia InitActor) Exec(act *types.Actor, vmctx types.VMContext, p *ExecParams)
"cannot launch actor instance that is not a builtin actor")
}
// Ensure that singeltons can be only launched once.
// Ensure that singletons can be only launched once.
// TODO: do we want to enforce this? If so how should actors be marked as such?
if IsSingletonActor(p.Code) {
return nil, aerrors.New(1, "cannot launch another actor of this type")