Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

fix: typo #2230

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions pkg/buildclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
Loading