Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some typos #1281

Merged
merged 1 commit into from Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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