From a828476fea297af3ac38889b39cbbbee3a08b3e0 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 9 Jul 2025 13:03:46 +0100 Subject: [PATCH] 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 { distributed func greet(name: String) -> String } ``` --- proposals/0428-resolve-distributed-actor-protocols.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/0428-resolve-distributed-actor-protocols.md b/proposals/0428-resolve-distributed-actor-protocols.md index 52a6964f52..e7b4128e3d 100644 --- a/proposals/0428-resolve-distributed-actor-protocols.md +++ b/proposals/0428-resolve-distributed-actor-protocols.md @@ -90,7 +90,7 @@ The macro must be attached to the a `protocol` declaration that is a `Distribute import Distributed @Resolvable -protocol Greeter where ActorSystem: DistributedActorSystem { +protocol Greeter: DistributedActor where ActorSystem: DistributedActorSystem { distributed func greet(name: String) -> String } ```