From 4a28238a6455bdb1cdc2524c080bd01da7b686c7 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Wed, 2 Feb 2022 23:47:57 +0900 Subject: [PATCH] fix small typos --- design/apidsl/attribute.go | 2 +- design/apidsl/resource.go | 2 +- design/definitions.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/design/apidsl/attribute.go b/design/apidsl/attribute.go index f1106e4a..a596d22b 100644 --- a/design/apidsl/attribute.go +++ b/design/apidsl/attribute.go @@ -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. diff --git a/design/apidsl/resource.go b/design/apidsl/resource.go index 80a700b8..69d970b7 100644 --- a/design/apidsl/resource.go +++ b/design/apidsl/resource.go @@ -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 // }) // diff --git a/design/definitions.go b/design/definitions.go index 6b25aa11..d71019af 100644 --- a/design/definitions.go +++ b/design/definitions.go @@ -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 @@ -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