Skip to content

Commit

Permalink
Merge pull request #1098 from lpmi-13/typo_fixes
Browse files Browse the repository at this point in the history
fix some simple typos
  • Loading branch information
kanata2 committed Aug 22, 2022
2 parents 1edf0c7 + fc79e27 commit ddd0ac3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit ddd0ac3

Please sign in to comment.