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 simple typos #1098

Merged
merged 1 commit into from Aug 22, 2022
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 misc.go
Expand Up @@ -50,7 +50,7 @@ type SlackErrorResponse struct {

func (r SlackErrorResponse) Error() string { return r.Err }

// RateLimitedError represents the rate limit respond from slack
// RateLimitedError represents the rate limit response from slack
type RateLimitedError struct {
RetryAfter time.Duration
}
Expand Down
2 changes: 1 addition & 1 deletion slackevents/outer_events.go
Expand Up @@ -61,7 +61,7 @@ const (
AppRateLimited = "app_rate_limited"
)

// EventsAPIEventMap maps OUTTER Event API events to their corresponding struct
// EventsAPIEventMap maps OUTER Event API events to their corresponding struct
// implementations. The structs should be instances of the unmarshalling
// target for the matching event type.
var EventsAPIEventMap = map[string]interface{}{
Expand Down
4 changes: 2 additions & 2 deletions slackevents/parsers.go
Expand Up @@ -12,7 +12,7 @@ import (

// eventsMap checks both slack.EventsMapping and
// and slackevents.EventsAPIInnerEventMapping. If the event
// exists, returns the the unmarshalled struct instance of
// exists, returns the unmarshalled struct instance of
// target for the matching event type.
// TODO: Consider moving all events into its own package?
func eventsMap(t string) (interface{}, bool) {
Expand Down Expand Up @@ -176,7 +176,7 @@ func (c TokenComparator) Verify(t string) bool {
return subtle.ConstantTimeCompare([]byte(c.VerificationToken), []byte(t)) == 1
}

// ParseEvent parses the outter and inner events (if applicable) of an events
// ParseEvent parses the outer and inner events (if applicable) of an events
// api event returning a EventsAPIEvent type. If the event is a url_verification event,
// the inner event is empty.
func ParseEvent(rawEvent json.RawMessage, opts ...Option) (EventsAPIEvent, error) {
Expand Down
4 changes: 2 additions & 2 deletions slackevents/parsers_test.go
Expand Up @@ -95,7 +95,7 @@ func TestThatOuterCallbackEventHasInnerEvent(t *testing.T) {
fmt.Println(e)
t.Fail()
}
switch outterEvent := msg.Data.(type) {
switch outerEvent := msg.Data.(type) {
case *EventsAPICallbackEvent:
{
switch innerEvent := msg.InnerEvent.Data.(type) {
Expand All @@ -109,7 +109,7 @@ func TestThatOuterCallbackEventHasInnerEvent(t *testing.T) {
}
default:
{
fmt.Println(outterEvent)
fmt.Println(outerEvent)
t.Fail()
}
}
Expand Down