Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yutasb committed Apr 21, 2024
1 parent 3815306 commit e337d74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/buttons/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e337d74

Please sign in to comment.