diff --git a/examples/buttons/buttons.go b/examples/buttons/buttons.go index 82772faa1..b5ef09c49 100644 --- a/examples/buttons/buttons.go +++ b/examples/buttons/buttons.go @@ -50,7 +50,7 @@ func main() { if err != nil { fmt.Printf("Could not send message: %v", err) } - fmt.Printf("Message with buttons sucessfully sent to channel %s at %s", channelID, timestamp) + fmt.Printf("Message with buttons successfully sent to channel %s at %s", channelID, timestamp) http.HandleFunc("/actions", actionHandler) http.ListenAndServe(":3000", nil) } diff --git a/files.go b/files.go index 356284420..f724f54d8 100644 --- a/files.go +++ b/files.go @@ -253,12 +253,12 @@ func (api *Client) GetFileInfoContext(ctx context.Context, fileID string, count, return &response.File, response.Comments, &response.Paging, nil } -// GetFile retreives a given file from its private download URL +// GetFile retrieves a given file from its private download URL func (api *Client) GetFile(downloadURL string, writer io.Writer) error { return api.GetFileContext(context.Background(), downloadURL, writer) } -// GetFileContext retreives a given file from its private download URL with a custom context +// GetFileContext retrieves a given file from its private download URL with a custom context // // For more details, see GetFile documentation. func (api *Client) GetFileContext(ctx context.Context, downloadURL string, writer io.Writer) error {