Skip to content

Commit 2d9c2c0

Browse files
authored
Fix prose in customizingyourgateway.md (#1359)
* improved customizingyourgateway.md * removed tabs * formatted go snippets in customizingyourgateway.md * Revert "formatted go snippets in customizingyourgateway.md" This reverts commit f80d909. deleted: .DS_Store deleted: docs/.DS_Store deleted: docs/_docs/.DS_Store modified: docs/_docs/customizingyourgateway.md * Revert "Revert "formatted go snippets in customizingyourgateway.md"" This reverts commit e3d2ad1. * Revert "Revert "Revert "formatted go snippets in customizingyourgateway.md""" This reverts commit bab7045. * formatted go snippet * reverted code * reverted changes * removed unwanted spaces
1 parent eaa3b8f commit 2d9c2c0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/_docs/customizingyourgateway.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Marshaler struct {
6363

6464
// A string to indent each level by. The presence of this field will
6565
// also cause a space to appear between the field separator and
66-
// value, and for newlines to be appear between fields and array
66+
// value, and for newlines to appear between fields and array
6767
// elements.
6868
Indent string
6969

@@ -79,8 +79,7 @@ also, this example code does not remove the query parameter `pretty` from furthe
7979

8080
## Customize unmarshaling per Content-Type
8181

82-
Having different unmarshaling options per Content-Type is possible by wrapping the decoder and
83-
and passing that to `runtime.WithMarshalerOption`:
82+
Having different unmarshaling options per Content-Type is possible by wrapping the decoder and passing that to `runtime.WithMarshalerOption`:
8483

8584
```go
8685
type m struct {
@@ -303,7 +302,7 @@ to RPC methods that have a unary response.
303302

304303
When the method has a streaming response, grpc-gateway handles
305304
that by emitting a newline-separated stream of "chunks". Each
306-
chunk is an envelope that can container either a response message
305+
chunk is an envelope that can contain either a response message
307306
or an error. Only the last chunk will include an error, and only
308307
when the RPC handler ends abnormally (i.e. with an error code).
309308

@@ -317,7 +316,7 @@ mux := runtime.NewServeMux(
317316
```
318317

319318
The signature of the handler is much more rigid because we need
320-
to know the structure of the error payload in order to properly
319+
to know the structure of the error payload to properly
321320
encode the "chunk" schema into a Swagger/OpenAPI spec.
322321

323322
So the function must return a `*runtime.StreamError`. The handler

0 commit comments

Comments
 (0)