Skip to content

Commit 0f59956

Browse files
authored
Update basics.md
1 parent 5990d3d commit 0f59956

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/endpoint/basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import sttp.tapir._
3030
type PublicEndpoint[I, E, O, -R] = Endpoint[Unit, I, E, O, R]
3131
```
3232

33-
A public endpoint has two inputs of types `UUID` and `Int`, upon error returns a `String`, and on normal
33+
A public endpoint that has two inputs of types `UUID` and `Int`, upon error returns a `String`, and on normal
3434
completion returns a `User`, would have the type:
3535

3636
```scala mdoc:invisible
@@ -45,7 +45,7 @@ import sttp.tapir._
4545
val userEndpoint: PublicEndpoint[(UUID, Int), String, User, Any] = ???
4646
```
4747

48-
You can think of an endpoint as a function, which takes input parameters of type `A` and `I` and returns a result of type
48+
You can think of an endpoint as a function which takes input parameters of type `A` and `I` and returns a result of type
4949
`Either[E, O]`.
5050

5151
### Infallible endpoints
@@ -54,7 +54,7 @@ Note that the empty `endpoint` description maps no values to either error and su
5454
are still represented and allowed to occur. In case of the error output, the single member of the unit type, `(): Unit`,
5555
maps to an empty-body `400 Bad Request`.
5656

57-
If you prefer to use an endpoint description, where errors cannot happen, use
57+
If you prefer to use an endpoint description where errors cannot happen use
5858
`infallibleEndpoint: PublicEndpoint[Unit, Nothing, Unit, Any]`. This might be useful when
5959
interpreting endpoints [as a client](../client/sttp.md).
6060

0 commit comments

Comments
 (0)