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 small typos #156

Merged
merged 1 commit into from Feb 2, 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 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