Skip to content
Permalink
Browse files

docs/integrations/openapi: fix code snippet

  • Loading branch information
proppy authored and mpvl committed Jan 22, 2020
1 parent 8ac22f0 commit 42fa00d8173d46c426ee4efd56790c3348eba53d
Showing with 1 addition and 1 deletion.
  1. +1 −1 content/en/docs/integrations/openapi.md
@@ -27,7 +27,7 @@ Generating an OpenAPI definition can be as simple as
{{< highlight go >}}
import "cuelang.org/go/encoding/openapi"

func genOpenAPI(inst *cue.Instance) (b []byte, error) {
func genOpenAPI(inst *cue.Instance) ([]byte, error) {
b, err := openapi.Gen(inst, nil)
if err != nil {
return nil, err

0 comments on commit 42fa00d

Please sign in to comment.
You can’t perform that action at this time.