Skip to content

Commit

Permalink
Fixed typos reported by goreportcard.com
Browse files Browse the repository at this point in the history
  • Loading branch information
spy16 committed Sep 25, 2018
1 parent 0a2abee commit c2205c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clipmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ClipboardMonitor struct {
oldContent string
}

// Run starts an infinite for loop which continuosly monitors
// Run starts an infinite for loop which continuously monitors
// the system clipboard for changes. Run() can be invoked as
// a goroutine, and a context can be passed in for stopping
// the monitor.
Expand Down Expand Up @@ -54,7 +54,7 @@ func (cbm *ClipboardMonitor) Run(ctx context.Context) error {
rs, err := cbm.Instance.Search(ctx, query, Strategy1st)
if err == nil && rs != nil {
if len(rs) > 0 {
cbm.Instance.Infof("recieved result. pasting back..")
cbm.Instance.Infof("received result. pasting back..")
clipboard.WriteAll(rs[0].Content)
cbm.oldContent = rs[0].Content
} else {
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (srv Server) handleSearch(wr http.ResponseWriter, req *http.Request) {
ctx := req.Context()
rs, err := srv.ins.Search(ctx, query, strategy)
if err != nil {
srv.Warnf("error occured during search: %s", err)
srv.Warnf("error occurred during search: %s", err)
wr.WriteHeader(http.StatusNotFound)
json.NewEncoder(wr).Encode(map[string]interface{}{
"error": err.Error(),
Expand Down
2 changes: 1 addition & 1 deletion sources/wikipedia/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewRequest(baseURL, query, language string) (*Request, error) {
}

// Execute fetches the data and decodes it into a Response.
// Returns an error if the data could not be retrived or the decoding fails.
// Returns an error if the data could not be retrieved or the decoding fails.
func (r *Request) Execute(ctx context.Context, noCheckCert bool) (*Response, error) {
client := &http.Client{}

Expand Down

0 comments on commit c2205c0

Please sign in to comment.