From 63ee2f573931ad1bb2b379df969ca6f0b2a64e8b Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 7 Oct 2023 17:05:19 +0800 Subject: [PATCH] fix: typo Signed-off-by: guoguangwu --- docs/README.md | 2 +- pkg/buildclient/client.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 47d0a7d38..832874539 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,7 +17,7 @@ yarn start - All names should be entirely lowercase. macOS filesystems are case-insensitive by default, Linux isn't. Bad things happen. - Names can be prefixed with `[a number]-` to force sort order. The number isn't included in the output files/URLs. -- Prefer short, to the point names. A single word when possible, hyphen-separated if you have to have mulitple. These will become the URL for the file. +- Prefer short, to the point names. A single word when possible, hyphen-separated if you have to have multiple. These will become the URL for the file. - Once published a file should never be renamed. If you have to anyway, a redirect must be setup so that the old name continues to go somewhere. - For files, a longer more descriptive title can go in the frontmatter (as `title:`). These can be internationalized later. - For directories, create a `_category_.yaml` with a `label:` in it to provide a longer display label/title. diff --git a/pkg/buildclient/client.go b/pkg/buildclient/client.go index bb0624f8b..5c840d8f5 100644 --- a/pkg/buildclient/client.go +++ b/pkg/buildclient/client.go @@ -44,11 +44,11 @@ func Stream(ctx context.Context, cwd string, streams *streams.Output, dialer Web return nil, err } - // If there was a body and an error ocurred, read the body and write it + // If there was a body and an error occurred, read the body and write it // into the error message. body, readErr := io.ReadAll(response.Body) if readErr != nil { - return nil, fmt.Errorf("%w: status %v, error occured while reading builder response body: %v", err, response.StatusCode, readErr) + return nil, fmt.Errorf("%w: status %v, error occurred while reading builder response body: %v", err, response.StatusCode, readErr) } return nil, fmt.Errorf("%w: %v, %v", err, response.StatusCode, string(body)) }