Skip to content

Commit

Permalink
docs: fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Aug 29, 2023
1 parent a06004c commit c536580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actors/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type ReceiveContext interface {
RemoteSender() *pb.Address
// Become switch the current behavior of the actor to a new behavior
// The current message in process during the transition will still be processed with the current
// behavior before the transition. However, subsequent public will be processed with the new behavior.
// behavior before the transition. However, subsequent messages will be processed with the new behavior.
// One needs to call UnBecome to reset the actor behavior to the default one which is the Actor.Receive method
// which is the default behavior.
Become(behavior Behavior)
Expand All @@ -37,7 +37,7 @@ type ReceiveContext interface {
UnBecome()
// BecomeStacked sets a new behavior to the actor.
// The current message in process during the transition will still be processed with the current
// behavior before the transition. However, subsequent public will be processed with the new behavior.
// behavior before the transition. However, subsequent messages will be processed with the new behavior.
// One needs to call UnBecomeStacked to go the previous the actor's behavior.
// which is the default behavior.
BecomeStacked(behavior Behavior)
Expand Down Expand Up @@ -108,7 +108,7 @@ func (m *receiveContext) Message() proto.Message {

// BecomeStacked sets a new behavior to the actor.
// The current message in process during the transition will still be processed with the current
// behavior before the transition. However, subsequent public will be processed with the new behavior.
// behavior before the transition. However, subsequent messages will be processed with the new behavior.
// One needs to call UnBecomeStacked to go the previous the actor's behavior.
// which is the default behavior.
func (m *receiveContext) BecomeStacked(behavior Behavior) {
Expand Down

0 comments on commit c536580

Please sign in to comment.