Skip to content

Commit 44028f2

Browse files
authored
Merge pull request #1777 from cjwatson/codespell-client
client: Fix spelling errors found by codespell
2 parents 6a60503 + 3eea02e commit 44028f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

client/incus_instances.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func (r *ProtocolIncus) GetInstanceFull(name string) (*api.InstanceFull, string,
466466
instance := api.InstanceFull{}
467467

468468
if !r.HasExtension("instance_get_full") {
469-
// Backware compatibility.
469+
// Backward compatibility.
470470
ct, _, err := r.GetInstance(name)
471471
if err != nil {
472472
return nil, "", err

client/incus_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (r *ProtocolIncus) ApplyServerPreseed(config api.InitPreseed) error {
313313
// Apply networks in the default project before other projects config applied (so that if the projects
314314
// depend on a network in the default project they can have their config applied successfully).
315315
for i := range config.Server.Networks {
316-
// Populate default project if not specified for backwards compatbility with earlier
316+
// Populate default project if not specified for backwards compatibility with earlier
317317
// preseed dump files.
318318
if config.Server.Networks[i].Project == "" {
319319
config.Server.Networks[i].Project = api.ProjectDefaultName

client/simplestreams_images.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (r *ProtocolSimpleStreams) GetImageFile(fingerprint string, req ImageFileRe
110110

111111
size, err := util.DownloadFileHash(context.TODO(), &httpClient, r.httpUserAgent, req.ProgressHandler, req.Canceler, filename, uri, hash, sha256.New(), target)
112112
if err != nil {
113-
// Handle cancelation
113+
// Handle cancellation
114114
if err.Error() == "net/http: request canceled" {
115115
return -1, err
116116
}

0 commit comments

Comments
 (0)