fix annotation for Initactor.Exec

This commit is contained in:
waynewyang 2019-10-23 10:39:45 +08:00
parent 007edf7830
commit db41aed2b8

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")