@@ -30,7 +30,7 @@ import sttp.tapir._
30
30
type PublicEndpoint [I , E , O , - R ] = Endpoint [Unit , I , E , O , R ]
31
31
```
32
32
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
34
34
completion returns a ` User ` , would have the type:
35
35
36
36
``` scala mdoc:invisible
@@ -45,7 +45,7 @@ import sttp.tapir._
45
45
val userEndpoint : PublicEndpoint [(UUID , Int ), String , User , Any ] = ???
46
46
```
47
47
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
49
49
` Either[E, O] ` .
50
50
51
51
### Infallible endpoints
@@ -54,7 +54,7 @@ Note that the empty `endpoint` description maps no values to either error and su
54
54
are still represented and allowed to occur. In case of the error output, the single member of the unit type, ` (): Unit ` ,
55
55
maps to an empty-body ` 400 Bad Request ` .
56
56
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
58
58
` infallibleEndpoint: PublicEndpoint[Unit, Nothing, Unit, Any] ` . This might be useful when
59
59
interpreting endpoints [ as a client] ( ../client/sttp.md ) .
60
60
0 commit comments