all: Fix typos (#4772)

Skip-check: authors
This commit is contained in:
Matic Potočnik 2018-02-24 08:51:29 +01:00 committed by Jakob Borg
parent a27032f09e
commit 1901a5a9f4
6 changed files with 7 additions and 7 deletions

View File

@ -154,7 +154,7 @@ func TestDatabaseGetSet(t *testing.T) {
} }
if len(rec.Addresses) != 1 { if len(rec.Addresses) != 1 {
t.Log(rec.Addresses) t.Log(rec.Addresses)
t.Fatal("should have one addres") t.Fatal("should have one address")
} }
if rec.Misses != 0 { if rec.Misses != 0 {
t.Log(rec.Misses) t.Log(rec.Misses)

View File

@ -149,7 +149,7 @@ func (m replicationMultiplexer) send(key string, ps []DatabaseAddress, seen int6
} }
} }
// replicationListener acceptes incoming connections and reads replication // replicationListener accepts incoming connections and reads replication
// items from them. Incoming items are applied to the KV store. // items from them. Incoming items are applied to the KV store.
type replicationListener struct { type replicationListener struct {
addr string addr string

View File

@ -23,7 +23,7 @@ func TestUnicodeLowercase(t *testing.T) {
{"ὈΔΥΣΣΕΎΣ", "ὀδυσσεύσ"}, {"ὈΔΥΣΣΕΎΣ", "ὀδυσσεύσ"},
// German ß doesn't really have an upper case variant, and we // German ß doesn't really have an upper case variant, and we
// shouldn't mess things up when lower casing it either. We don't // shouldn't mess things up when lower casing it either. We don't
// attempt to make ß equivalant to "ss". // attempt to make ß equivalent to "ss".
{"Reichwaldstraße", "reichwaldstraße"}, {"Reichwaldstraße", "reichwaldstraße"},
// The Turks do their thing with the Is.... Like the Greek example // The Turks do their thing with the Is.... Like the Greek example
// we pick just the one canonicalized "i" although you can argue // we pick just the one canonicalized "i" although you can argue

View File

@ -1405,7 +1405,7 @@ func (cf cFiler) CurrentFile(file string) (protocol.FileInfo, bool) {
return cf.m.CurrentFolderFile(cf.r, file) return cf.m.CurrentFolderFile(cf.r, file)
} }
// Connection returns the current connection for device, and a boolean wether a connection was found. // Connection returns the current connection for device, and a boolean whether a connection was found.
func (m *Model) Connection(deviceID protocol.DeviceID) (connections.Connection, bool) { func (m *Model) Connection(deviceID protocol.DeviceID) (connections.Connection, bool) {
m.pmut.RLock() m.pmut.RLock()
cn, ok := m.conn[deviceID] cn, ok := m.conn[deviceID]

View File

@ -26,7 +26,7 @@ func DebugSymlinkForTestsOnly(oldname, newname string) error {
// '/' does not work in link's content // '/' does not work in link's content
oldname = filepath.FromSlash(oldname) oldname = filepath.FromSlash(oldname)
// need the exact location of the oldname when its relative to determine if its a directory // need the exact location of the oldname when it's relative to determine if it's a directory
destpath := oldname destpath := oldname
if !filepath.IsAbs(oldname) { if !filepath.IsAbs(oldname) {
destpath = filepath.Dir(newname) + `\` + oldname destpath = filepath.Dir(newname) + `\` + oldname
@ -75,7 +75,7 @@ func fixLongPath(path string) string {
// minus 12)." Since MAX_PATH is 260, 260 - 12 = 248. // minus 12)." Since MAX_PATH is 260, 260 - 12 = 248.
// //
// The MSDN docs appear to say that a normal path that is 248 bytes long // The MSDN docs appear to say that a normal path that is 248 bytes long
// will work; empirically the path must be less then 248 bytes long. // will work; empirically the path must be less than 248 bytes long.
if len(path) < 248 { if len(path) < 248 {
// Don't fix. (This is how Go 1.7 and earlier worked, // Don't fix. (This is how Go 1.7 and earlier worked,
// not automatically generating the \\?\ form) // not automatically generating the \\?\ form)

View File

@ -122,7 +122,7 @@ func TestSelectedReleaseMacOS(t *testing.T) {
t.Skip("macOS only") t.Skip("macOS only")
} }
// The alterantives that we expect should work // The alternatives that we expect should work
assetNames := []string{ assetNames := []string{
"syncthing-macos-amd64-v0.14.47.tar.gz", "syncthing-macos-amd64-v0.14.47.tar.gz",
"syncthing-macosx-amd64-v0.14.47.tar.gz", "syncthing-macosx-amd64-v0.14.47.tar.gz",