Skip to content

Commit

Permalink
all: Typos
Browse files Browse the repository at this point in the history
Skip-check: authors

GitHub-Pull-Request: syncthing#4263
  • Loading branch information
HairyFotr authored and calmh committed Jul 20, 2017
1 parent 0ca2ed7 commit 0ad10b0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/syncthing/gui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/syncthing/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion etc/linux-upstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lib/connections/kcp_misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion lib/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0ad10b0

Please sign in to comment.