diff --git a/lib/config/wrapper.go b/lib/config/wrapper.go index 37c9f36a8..30c73ecdd 100644 --- a/lib/config/wrapper.go +++ b/lib/config/wrapper.go @@ -31,7 +31,7 @@ import ( // If all verification calls returns nil, CommitConfiguration() is called for // each subscribing object. The callee returns true if the new configuration // has been successfully applied, otherwise false. Any Commit() call returning -// false will result in a "restart needed" respone to the API/user. Note that +// false will result in a "restart needed" response to the API/user. Note that // the new configuration will still have been applied by those who were // capable of doing so. type Committer interface { diff --git a/lib/connections/connections.go b/lib/connections/connections.go index 34c93a52e..3852d829e 100644 --- a/lib/connections/connections.go +++ b/lib/connections/connections.go @@ -389,7 +389,7 @@ func (s *connectionSvc) connectViaRelay(deviceID protocol.DeviceID, addr discove l.Debugf("Failed to join relay session %s: %v", inv, err) return nil } - l.Debugln("Sucessfully joined relay session", inv) + l.Debugln("Successfully joined relay session", inv) var tc *tls.Conn diff --git a/lib/db/virtualmtime.go b/lib/db/virtualmtime.go index a632a7864..f6049de15 100644 --- a/lib/db/virtualmtime.go +++ b/lib/db/virtualmtime.go @@ -45,7 +45,7 @@ func (r *VirtualMtimeRepo) UpdateMtime(path string, diskMtime, actualMtime time. func (r *VirtualMtimeRepo) GetMtime(path string, diskMtime time.Time) time.Time { data, exists := r.ns.Bytes(path) if !exists { - // Absense of debug print is significant enough in itself here + // Absence of debug print is significant enough in itself here return diskMtime } diff --git a/lib/discover/doc.go b/lib/discover/doc.go index c537ddc51..7ed497d4f 100644 --- a/lib/discover/doc.go +++ b/lib/discover/doc.go @@ -24,7 +24,7 @@ connection addresses (if any) and relay addresses (if any). } It's OK for either of the "direct" or "relays" fields to be either the empty -list ([]), null, or missing entirely. An announcment with both fields missing +list ([]), null, or missing entirely. An announcement with both fields missing or empty is however not useful... Any empty or unspecified IP addresses (i.e. addresses like tcp://:22000, @@ -39,7 +39,7 @@ The server response is empty, with code 200 (OK) on success. If no certificate was presented, status 403 (Forbidden) is returned. If the posted data doesn't conform to the expected format, 400 (Bad Request) is returned. -In successfull responses, the server may return a "Reannounce-After" header +In successful responses, the server may return a "Reannounce-After" header containing the number of seconds after which the client should perform a new announcement. @@ -58,7 +58,7 @@ Queries are performed as HTTPS GET requests to the announce server URL. The requested device ID is passed as the query parameter "device", in canonical string form, i.e. https://announce.syncthing.net/?device=ABC12345-.... -Successfull responses will have status code 200 (OK) and carry a JSON payload +Successful responses will have status code 200 (OK) and carry a JSON payload of the same format as the announcement above. The response will not contain empty or unspecified addresses. diff --git a/lib/events/events.go b/lib/events/events.go index 8c456d385..29391fec9 100644 --- a/lib/events/events.go +++ b/lib/events/events.go @@ -284,7 +284,7 @@ func (s *BufferedSubscription) Since(id int, into []Event) []Event { } // Error returns a string pointer suitable for JSON marshalling errors. It -// retains the "null on sucess" semantics, but ensures the error result is a +// retains the "null on success" semantics, but ensures the error result is a // string regardless of the underlying concrete error type. func Error(err error) *string { if err == nil { diff --git a/lib/logger/logger_test.go b/lib/logger/logger_test.go index 31e8f079b..9f1e1f8c0 100644 --- a/lib/logger/logger_test.go +++ b/lib/logger/logger_test.go @@ -78,7 +78,7 @@ func TestFacilityDebugging(t *testing.T) { f1.Debugln("Debug line from f1") if msgs != 1 { - t.Fatalf("Incorrent number of messages, %d != 1", msgs) + t.Fatalf("Incorrect number of messages, %d != 1", msgs) } } diff --git a/lib/model/model.go b/lib/model/model.go index d2976ac52..87cfbb21a 100644 --- a/lib/model/model.go +++ b/lib/model/model.go @@ -1014,7 +1014,7 @@ func sendIndexes(conn protocol.Connection, folder string, fs *db.FileSet, ignore minLocalVer, err = sendIndexTo(false, minLocalVer, conn, folder, fs, ignores) // Wait a short amount of time before entering the next loop. If there - // are continous changes happening to the local index, this gives us + // are continuous changes happening to the local index, this gives us // time to batch them up a little. time.Sleep(250 * time.Millisecond) } @@ -1848,7 +1848,7 @@ func (m *Model) CommitConfiguration(from, to config.Configuration) bool { } } - // Removing a device requres restart + // Removing a device requires restart toDevs := mapDeviceCfgs(from.Devices) for _, dev := range from.Devices { if _, ok := toDevs[dev.DeviceID]; !ok { diff --git a/lib/model/rwfolder_test.go b/lib/model/rwfolder_test.go index 6eefac58a..2174122e8 100644 --- a/lib/model/rwfolder_test.go +++ b/lib/model/rwfolder_test.go @@ -514,7 +514,7 @@ func TestDeregisterOnFailInPull(t *testing.T) { p.handleFile(file, copyChan, finisherChan) - // Receove at finisher, we shoud error out as puller has nowhere to pull + // Receive at finisher, we should error out as puller has nowhere to pull // from. select { case state := <-finisherBufferChan: diff --git a/test/http_test.go b/test/http_test.go index 095f9dabd..afcec226e 100644 --- a/test/http_test.go +++ b/test/http_test.go @@ -47,7 +47,7 @@ func TestGetIndex(t *testing.T) { p := startInstance(t, 2) defer checkedStop(t, p) - // Check for explicint index.html + // Check for explicit index.html res, err := http.Get("http://localhost:8082/index.html") if err != nil { diff --git a/test/util.go b/test/util.go index 084483de0..8b08aa69e 100644 --- a/test/util.go +++ b/test/util.go @@ -220,7 +220,7 @@ func alterFiles(dir string) error { /* This fails. Bug? - // Rename the file, while potentially moving it up in the directory hiearachy + // Rename the file, while potentially moving it up in the directory hierarchy case r == 4 && comps > 2 && (info.Mode().IsRegular() || rand.Float64() < 0.2): rpath := filepath.Dir(path) if rand.Float64() < 0.2 {