From e69bc1a8d1ea8e3d2614e387807d85053f5e56d5 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Sat, 26 Aug 2023 11:14:52 +0200 Subject: [PATCH] openapi3: fix func doc after #823 Signed-off-by: Pierre Fenoll --- openapi3/header.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3/header.go b/openapi3/header.go index a492be4bf..f359581a5 100644 --- a/openapi3/header.go +++ b/openapi3/header.go @@ -48,7 +48,7 @@ func (header *Header) UnmarshalJSON(data []byte) error { return header.Parameter.UnmarshalJSON(data) } -// MarshalJSON returns the JSON encoding of Header. +// MarshalYAML returns the JSON encoding of Header. func (header Header) MarshalYAML() (interface{}, error) { return header.Parameter, nil }