Skip to content

Commit

Permalink
Merge pull request #156 from shogo82148/fix-small-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 2, 2022
2 parents 60842be + 4a28238 commit f10e133
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion design/apidsl/attribute.go
Expand Up @@ -366,7 +366,7 @@ func Enum(val ...interface{}) {
// such as responses that refer to responses defined at the API level or links that
// refer to the media type attributes. So if the form that takes a DSL always ended
// up defining an object we'd have a weird situation where one arg is string and
// two args is object. Breaks the least surprise principle. Soooo long story
// two args is object. Breaks the least surprise principle. So long story
// short the lesser evil seems to be to allow the ambiguity. Also tests like the
// one below are really a convenience to the user and not a fundamental feature
// - not checking in the case the type is not known yet is OK.
Expand Down
2 changes: 1 addition & 1 deletion design/apidsl/resource.go
Expand Up @@ -35,7 +35,7 @@ import (
// Headers("X-Shared-Secret") // One or more authorized headers, use "*" to authorize all
// Methods("GET", "POST") // One or more authorized HTTP methods
// Expose("X-Time") // One or more headers exposed to clients
// MaxAge(600) // How long to cache a prefligh request response
// MaxAge(600) // How long to cache a preflight request response
// Credentials() // Sets Access-Control-Allow-Credentials header
// })
//
Expand Down
4 changes: 2 additions & 2 deletions design/definitions.go
Expand Up @@ -158,7 +158,7 @@ type (
Methods []string
// List of headers exposed to clients
Exposed []string
// How long to cache a prefligh request response
// How long to cache a preflight request response
MaxAge uint
// Sets Access-Control-Allow-Credentials header
Credentials bool
Expand All @@ -176,7 +176,7 @@ type (
// the goa.EncoderFactory or goa.DecoderFactory interface respectively.
PackagePath string
// Function is the name of the Go function used to instantiate the encoder/decoder.
// Defaults to NewEncoder and NewDecoder respecitively.
// Defaults to NewEncoder and NewDecoder respectively.
Function string
// Encoder is true if the definition is for a encoder, false if it's for a decoder.
Encoder bool
Expand Down

0 comments on commit f10e133

Please sign in to comment.