Skip to content

Commit f20929b

Browse files
authored
docs: fix example server docstring (#652)
1 parent 46e39ee commit f20929b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/gorgeous-suns-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect-http": patch
3+
---
4+
5+
Fix `ExampleServer.makeSchema` docstring.

packages/effect-http/src/ExampleServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* The `exampleServer` function generates a `Server` implementation based
2+
* The `ExampleServer.make` function generates a `RouterBuilder` implementation based
33
* on an instance of `Api`. The listening server will perform all the
44
* request and response validations similarly to a real implementation.
55
*
@@ -56,7 +56,7 @@ export const handleRemaining: <A extends ApiEndpoint.ApiEndpoint.Any, E, R>(
5656
) => RouterBuilder.RouterBuilder<never, E, R | ApiEndpoint.ApiEndpoint.Context<A>> = internal.handleRemaining
5757

5858
/**
59-
* Generate an example `RouterBuilder` implementation.
59+
* Generate an example value for the given schema.
6060
*
6161
* @category utils
6262
* @since 1.0.0

packages/effect-http/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export * as Client from "./Client.js"
5555
export * as ClientError from "./ClientError.js"
5656

5757
/**
58-
* The `exampleServer` function generates a `Server` implementation based
58+
* The `ExampleServer.make` function generates a `RouterBuilder` implementation based
5959
* on an instance of `Api`. The listening server will perform all the
6060
* request and response validations similarly to a real implementation.
6161
*

0 commit comments

Comments
 (0)