From 7b649e2f0c3150faa55312da06f6d6986bfc441b Mon Sep 17 00:00:00 2001 From: hidewrong <167099254+hidewrong@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:14:04 +0800 Subject: [PATCH] Fix some typos in comments --- pkg/plugins/builder.go | 2 +- pkg/server/service/roundtripper_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugins/builder.go b/pkg/plugins/builder.go index 9a5261307..17ba1022b 100644 --- a/pkg/plugins/builder.go +++ b/pkg/plugins/builder.go @@ -141,7 +141,7 @@ func newMiddlewareBuilder(ctx context.Context, goPath string, manifest *Manifest case runtimeYaegi, "": i, err := newInterpreter(ctx, goPath, manifest.Import) if err != nil { - return nil, fmt.Errorf("failed to craete Yaegi intepreter: %w", err) + return nil, fmt.Errorf("failed to create Yaegi interpreter: %w", err) } return newYaegiMiddlewareBuilder(i, manifest.BasePkg, manifest.Import) diff --git a/pkg/server/service/roundtripper_test.go b/pkg/server/service/roundtripper_test.go index 600fc1457..0b1e80719 100644 --- a/pkg/server/service/roundtripper_test.go +++ b/pkg/server/service/roundtripper_test.go @@ -536,7 +536,7 @@ func (f *fakeSpiffePKI) genSVID(id spiffeid.ID) (*x509svid.SVID, error) { return x509svid.ParseRaw(certDER, keyPKCS8) } -// fakeSpiffeSource allows retrieving staticly an SVID and its associated bundle. +// fakeSpiffeSource allows retrieving statically an SVID and its associated bundle. type fakeSpiffeSource struct { bundle *x509bundle.Bundle svid *x509svid.SVID