Sfoglia il codice sorgente

all: Typos

Skip-check: authors

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4263
HairyFotr 8 anni fa
parent
commit
0ad10b0fee

+ 1 - 1
README.md

@@ -100,7 +100,7 @@ All code is licensed under the [MPLv2 License][7].
 [1]: https://docs.syncthing.net/specs/bep-v1.html
 [2]: https://docs.syncthing.net/intro/getting-started.html
 [3]: https://github.com/syncthing/syncthing/blob/master/etc
-[4]: http://www.freenode.net/
+[4]: https://www.freenode.net/
 [5]: https://docs.syncthing.net/dev/building.html
 [6]: https://docs.syncthing.net/
 [7]: https://github.com/syncthing/syncthing/blob/master/LICENSE

+ 1 - 1
cmd/syncthing/gui_test.go

@@ -943,7 +943,7 @@ func TestEventMasks(t *testing.T) {
 	}
 
 	expected = 0
-	if mask := svc.getEventMask("WeirdEvent,something else that doens't exist"); mask != expected {
+	if mask := svc.getEventMask("WeirdEvent,something else that doesn't exist"); mask != expected {
 		t.Errorf("incorrect parsed mask %x != %x", int64(mask), int64(expected))
 	}
 

+ 1 - 1
cmd/syncthing/main.go

@@ -1074,7 +1074,7 @@ func setupGUI(mainService *suture.Supervisor, cfg *config.Wrapper, m *model.Mode
 
 	if cfg.Options().StartBrowser && !runtimeOptions.noBrowser && !runtimeOptions.stRestarting {
 		// Can potentially block if the utility we are invoking doesn't
-		// fork, and just execs, hence keep it in it's own routine.
+		// fork, and just execs, hence keep it in its own routine.
 		<-api.startedOnce
 		go openURL(guiCfg.URL())
 	}

+ 1 - 1
etc/linux-upstart/README.md

@@ -5,7 +5,7 @@ the "Upstart" service manager on Linux. To have syncthing start when you login
 place "user/syncthing.conf" in the "/home/[username]/.config/upstart/" folder.
 To have syncthing start when the system boots place "system/syncthing.conf"
 in the "/etc/init/" folder.
-To manualy start syncthing via Upstart when using the system configuration use:
+To manually start syncthing via Upstart when using the system configuration use:
 
 ```
     sudo initctl start syncthing

+ 4 - 4
lib/connections/kcp_misc.go

@@ -26,8 +26,8 @@ var (
 
 type filterList []*pfilter.PacketFilter
 
-// Sort connections by wether the are unspecified or not, as connections
-// listenin on all addresses are more useful.
+// Sort connections by whether they are unspecified or not, as connections
+// listening on all addresses are more useful.
 func (f filterList) Len() int      { return len(f) }
 func (f filterList) Swap(i, j int) { f[i], f[j] = f[j], f[i] }
 func (f filterList) Less(i, j int) bool {
@@ -92,7 +92,7 @@ func (f *kcpConversationFilter) Outgoing(out []byte, addr net.Addr) {
 }
 
 func (kcpConversationFilter) isKCPConv(data []byte) bool {
-	// Need atleast 5 bytes
+	// Need at least 5 bytes
 	if len(data) < 5 {
 		return false
 	}
@@ -143,7 +143,7 @@ func (f *stunFilter) ClaimIncoming(in []byte, addr net.Addr) bool {
 }
 
 func (f *stunFilter) isStunPayload(data []byte) bool {
-	// Need atleast 20 bytes
+	// Need at least 20 bytes
 	if len(data) < 20 {
 		return false
 	}

+ 1 - 1
lib/model/model.go

@@ -533,7 +533,7 @@ func (m *Model) Completion(device protocol.DeviceID, folder string) FolderComple
 
 	// If the completion is 100% but there are deletes we need to handle,
 	// drop it down a notch. Hack for consumers that look only at the
-	// percentage (our own GUI does the same calculation as here on it's own
+	// percentage (our own GUI does the same calculation as here on its own
 	// and needs the same fixup).
 	if need == 0 && deletes > 0 {
 		completionPct = 95 // chosen by fair dice roll

+ 2 - 2
test/reset_test.go

@@ -33,7 +33,7 @@ func TestReset(t *testing.T) {
 	size := createFiles(t)
 
 	p := startInstance(t, 1)
-	defer p.Stop() // Not checkedStop, because Syncthing will exit on it's own
+	defer p.Stop() // Not checkedStop, because Syncthing will exit on its own
 
 	m, err := p.Model("default")
 	if err != nil {
@@ -76,7 +76,7 @@ func TestReset(t *testing.T) {
 	// ---- Syncthing exits here ----
 
 	p = startInstance(t, 1)
-	defer p.Stop() // Not checkedStop, because Syncthing will exit on it's own
+	defer p.Stop() // Not checkedStop, because Syncthing will exit on its own
 
 	m, err = p.Model("default")
 	if err != nil {