diff --git a/docs/go/headers-and-trailers.md b/docs/go/headers-and-trailers.md index f88fc03..b712050 100644 --- a/docs/go/headers-and-trailers.md +++ b/docs/go/headers-and-trailers.md @@ -75,7 +75,7 @@ func call() { connect.NewRequest(&greetv1.GreetRequest{}), ) if connectErr := new(connect.Error); errors.As(err, &connectErr) { - fmt.Println(err.Meta().Get("Greet-Version")) + fmt.Println(connectErr.Meta().Get("Greet-Version")) } } ```