From 7659798f806e2dc6b39e330707bb00cf04d36a98 Mon Sep 17 00:00:00 2001 From: co63oc Date: Mon, 7 Apr 2025 14:01:52 +0800 Subject: [PATCH] Fix typos Signed-off-by: co63oc --- PROJECT.md | 4 ++-- docs/reference/buildx_build.md | 2 +- driver/remote/driver.go | 2 +- util/buildflags/attests.go | 2 +- util/ioset/mux_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PROJECT.md b/PROJECT.md index add2466a..ee29867d 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -21,7 +21,7 @@ - [Verify essential information](#verify-essential-information) - [Classify the issue](#classify-the-issue) - [Prioritization guidelines for `kind/bug`](#prioritization-guidelines-for-kindbug) -- [Issue lifecyle](#issue-lifecyle) +- [Issue lifecycle](#issue-lifecycle) - [Examples](#examples) - [Submitting a bug](#submitting-a-bug) - [Pull request review process](#pull-request-review-process) @@ -308,7 +308,7 @@ Examples: - Bugs in non-default configurations - Most enhancements -## Issue lifecyle +## Issue lifecycle ```mermaid flowchart LR diff --git a/docs/reference/buildx_build.md b/docs/reference/buildx_build.md index 3765dddc..8b536fa5 100644 --- a/docs/reference/buildx_build.md +++ b/docs/reference/buildx_build.md @@ -944,7 +944,7 @@ $ docker buildx build --secret [type=file,]id=[,src=] . ###### `type=file` usage In the following example, `type=file` is automatically detected because no -environment variable mathing `aws` (the ID) is set. +environment variable matching `aws` (the ID) is set. ```console $ docker buildx build --secret id=aws,src=$HOME/.aws/credentials . diff --git a/driver/remote/driver.go b/driver/remote/driver.go index 7f054375..22145dd6 100644 --- a/driver/remote/driver.go +++ b/driver/remote/driver.go @@ -28,7 +28,7 @@ type Driver struct { *tlsOpts defaultLoad bool - // remote driver caches the client because its Bootstap/Info methods reuse it internally + // remote driver caches the client because its Bootstrap/Info methods reuse it internally clientOnce sync.Once client *client.Client err error diff --git a/util/buildflags/attests.go b/util/buildflags/attests.go index 8bf67244..934a1dc5 100644 --- a/util/buildflags/attests.go +++ b/util/buildflags/attests.go @@ -202,7 +202,7 @@ func ParseAttests(in []string) ([]*controllerapi.Attest, error) { func ConvertAttests(in []*Attest) ([]*controllerapi.Attest, error) { out := make([]*controllerapi.Attest, 0, len(in)) - // Check for dupplicate attestations while we convert them + // Check for duplicate attestations while we convert them // to the controller API. found := map[string]struct{}{} for _, attest := range in { diff --git a/util/ioset/mux_test.go b/util/ioset/mux_test.go index 1f0edd0b..039998ae 100644 --- a/util/ioset/mux_test.go +++ b/util/ioset/mux_test.go @@ -189,7 +189,7 @@ func TestMuxIO(t *testing.T) { } } -type instruction func(m *MuxIO) (intput string, writeBackView string) +type instruction func(m *MuxIO) (input string, writeBackView string) func input(s string) instruction { return func(m *MuxIO) (string, string) {