Skip to content

Commit

Permalink
chore(spelling): Fixed typo (occured -> occurred)
Browse files Browse the repository at this point in the history
Merge Pull Request #1567
  • Loading branch information
eltociear authored Oct 26, 2020
1 parent 425dced commit 55cc875
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion base/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion p2p/profile_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion p2p/profile_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion p2p/resolve_ref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions remote/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion remote/mock_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion repo/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion repo/mem_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 55cc875

Please sign in to comment.