From 55cc875cff66f0c07797ad798dfe646c8e6c8fbc Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Tue, 27 Oct 2020 02:09:27 +0900 Subject: [PATCH] chore(spelling): Fixed typo (occured -> occurred) Merge Pull Request #1567 --- base/remove.go | 2 +- p2p/profile_service.go | 2 +- p2p/profile_service_test.go | 2 +- p2p/resolve_ref_test.go | 2 +- remote/client.go | 4 ++-- remote/mock_client.go | 2 +- repo/fs/fs.go | 2 +- repo/mem_repo.go | 2 +- repo/repo.go | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/base/remove.go b/base/remove.go index 98dc87063..5acfa4016 100644 --- a/base/remove.go +++ b/base/remove.go @@ -14,7 +14,7 @@ import ( // RemoveEntireDataset removes all of the information in the repository about a dataset. It will // continue on even if some error occurs, returning a comma-separated list of what locations data -// was removed from, as well the last error that occured, if any. +// was removed from, as well the last error that occurred, if any. // Note that in particular, FSI is not handled at all by this function. Callers should also // call any relevent FSI operations. func RemoveEntireDataset(ctx context.Context, r repo.Repo, ref dsref.Ref, history []DatasetLogItem) (didRemove string, removeErr error) { diff --git a/p2p/profile_service.go b/p2p/profile_service.go index 17a148e28..d3cdef2ab 100644 --- a/p2p/profile_service.go +++ b/p2p/profile_service.go @@ -194,7 +194,7 @@ func (q *QriProfileService) profileWait(ctx context.Context, p peer.ID) <-chan s q.peersMu.Unlock() if found { - log.Debugf("%s profile request to %s has already occured", ProfileProtocolID, p) + log.Debugf("%s profile request to %s has already occurred", ProfileProtocolID, p) return wait } diff --git a/p2p/profile_service_test.go b/p2p/profile_service_test.go index 1b79ddc00..a382085c4 100644 --- a/p2p/profile_service_test.go +++ b/p2p/profile_service_test.go @@ -98,7 +98,7 @@ func TestQriProfileService(t *testing.T) { } } if !expectedPeer { - t.Logf("peer %q event occured, but not an expected peer", pid) + t.Logf("peer %q event occurred, but not an expected peer", pid) unexpectedPeers = append(unexpectedPeers, pid) return nil } diff --git a/p2p/resolve_ref_test.go b/p2p/resolve_ref_test.go index 00cbf7ce2..9c3df41a1 100644 --- a/p2p/resolve_ref_test.go +++ b/p2p/resolve_ref_test.go @@ -73,7 +73,7 @@ func TestResolveRef(t *testing.T) { } } if !expectedPeer { - t.Logf("peer %q event occured, but not an expected peer", pid) + t.Logf("peer %q event occurred, but not an expected peer", pid) return nil } if typ == event.ETP2PQriPeerConnected { diff --git a/remote/client.go b/remote/client.go index 2f4752935..25677513e 100644 --- a/remote/client.go +++ b/remote/client.go @@ -73,7 +73,7 @@ type Client interface { // Done returns a channel that the client will send on when the client is // closed Done() <-chan struct{} - // DoneErr gives any error that occured in the shutdown process + // DoneErr gives any error that occurred in the shutdown process DoneErr() error // Shutdown ends the client process early Shutdown() <-chan struct{} @@ -749,7 +749,7 @@ func (c *client) Done() <-chan struct{} { return c.doneCh } -// DoneErr gives an error that occured during the shutdown process +// DoneErr gives an error that occurred during the shutdown process func (c *client) DoneErr() error { return c.doneErr } diff --git a/remote/mock_client.go b/remote/mock_client.go index cdfb5c947..67ca18a9c 100644 --- a/remote/mock_client.go +++ b/remote/mock_client.go @@ -306,7 +306,7 @@ func (c *MockClient) Done() <-chan struct{} { return c.doneCh } -// DoneErr gives an error that occured during the shutdown process +// DoneErr gives an error that occurred during the shutdown process func (c *MockClient) DoneErr() error { return c.doneErr } diff --git a/repo/fs/fs.go b/repo/fs/fs.go index d884ef82b..d964c5661 100644 --- a/repo/fs/fs.go +++ b/repo/fs/fs.go @@ -201,7 +201,7 @@ func (r *Repo) Done() <-chan struct{} { return r.doneCh } -// DoneErr gives an error that occured during the shutdown process +// DoneErr gives an error that occurred during the shutdown process func (r *Repo) DoneErr() error { return r.doneErr } diff --git a/repo/mem_repo.go b/repo/mem_repo.go index ffcd08151..7fc7b7881 100644 --- a/repo/mem_repo.go +++ b/repo/mem_repo.go @@ -177,7 +177,7 @@ func (r *MemRepo) Done() <-chan struct{} { return r.doneCh } -// DoneErr gives an error that occured during the shutdown process +// DoneErr gives an error that occurred during the shutdown process func (r *MemRepo) DoneErr() error { return r.doneErr } diff --git a/repo/repo.go b/repo/repo.go index 0a8f4dba6..86e5d1958 100644 --- a/repo/repo.go +++ b/repo/repo.go @@ -100,7 +100,7 @@ type Repo interface { // Done returns a channel that the repo will send on when the repo is closed Done() <-chan struct{} - // DoneErr gives any error that occured in the shutdown process + // DoneErr gives any error that occurred in the shutdown process DoneErr() error }