diff --git a/docs/dsl/headers.md b/docs/dsl/headers.md index 9a780c5ce2..481675c7ac 100644 --- a/docs/dsl/headers.md +++ b/docs/dsl/headers.md @@ -153,8 +153,7 @@ object SimpleClientJson extends ZIOAppDefault { } yield () override def run = - program.provide(Client.default) - + program.provideSome[Scope](Client.default) } ``` diff --git a/docs/examples/basic/http-client.md b/docs/examples/basic/http-client.md index 2a7613efc1..dd029090ad 100644 --- a/docs/examples/basic/http-client.md +++ b/docs/examples/basic/http-client.md @@ -19,7 +19,7 @@ object SimpleClient extends ZIOAppDefault { _ <- Console.printLine(data) } yield () - override val run = program.provide(Client.default) + override val run = program.provideSome[Scope](Client.default) } diff --git a/docs/examples/basic/https-client.md b/docs/examples/basic/https-client.md index 365b7e2b86..98fc69c0e8 100644 --- a/docs/examples/basic/https-client.md +++ b/docs/examples/basic/https-client.md @@ -29,7 +29,7 @@ object HttpsClient extends ZIOAppDefault { } yield () val run = - program.provide( + program.provideSome[Scope]( ZLayer.succeed(clientConfig), Client.customized, NettyClientDriver.live,