Skip to content

Commit

Permalink
Merge pull request #1281 from yutasb/fix_typos
Browse files Browse the repository at this point in the history
fix some typos
  • Loading branch information
parsley42 committed Apr 22, 2024
2 parents 3815306 + e337d74 commit f0c1d7a
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
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
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 f0c1d7a

Please sign in to comment.