Skip to content

Commit a828476

Browse files
authored
Fix sample code in 0428-resolve-distributed-actor-protocols.md
This code caused an error with `ActorSystem` type parameter unbound: ``` import Distributed @resolvable protocol Greeter where ActorSystem: DistributedActorSystem<any Codable> { distributed func greet(name: String) -> String } ```
1 parent 2af25b6 commit a828476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0428-resolve-distributed-actor-protocols.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The macro must be attached to the a `protocol` declaration that is a `Distribute
9090
import Distributed
9191

9292
@Resolvable
93-
protocol Greeter where ActorSystem: DistributedActorSystem<any Codable> {
93+
protocol Greeter: DistributedActor where ActorSystem: DistributedActorSystem<any Codable> {
9494
distributed func greet(name: String) -> String
9595
}
9696
```

0 commit comments

Comments
 (0)