Correct typos in code doc (#408)
diff --git a/commands/activation.go b/commands/activation.go
index 9c0fe20..6dbde79 100644
--- a/commands/activation.go
+++ b/commands/activation.go
@@ -110,7 +110,7 @@
var field string
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
errStr := wski18n.T("Unable to get activation: {{.err}}",
map[string]interface{}{"err": err})
@@ -180,7 +180,7 @@
RunE: func(cmd *cobra.Command, args []string) error {
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
errStr := wski18n.T("Unable to get logs for activation: {{.err}}",
map[string]interface{}{"err": err})
@@ -221,7 +221,7 @@
RunE: func(cmd *cobra.Command, args []string) error {
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
errStr := wski18n.T("Unable to get result for activation: {{.err}}",
map[string]interface{}{"err": err})
diff --git a/commands/api.go b/commands/api.go
index 87ff9fd..7ded1c5 100644
--- a/commands/api.go
+++ b/commands/api.go
@@ -594,7 +594,7 @@
for i := 0; i < len(retApiArray.Apis); i++ {
orderFilteredList = append(orderFilteredList, genFilteredList(retApiArray.Apis[i].ApiValue, apiPath, apiVerb)...)
}
- printList(orderFilteredList, sortByName) // Sends an array of structs that contains specifed variables that are not truncated
+ printList(orderFilteredList, sortByName) // Sends an array of structs that contains specified variables that are not truncated
} else {
if len(retApiArray.Apis) > 0 {
// Dynamically create the output format string based on the maximum size of the
@@ -610,7 +610,7 @@
for i := 0; i < len(retApiArray.Apis); i++ {
orderFilteredRow = append(orderFilteredRow, genFilteredRow(retApiArray.Apis[i].ApiValue, apiPath, apiVerb, maxActionNameSize, maxApiNameSize)...)
}
- printList(orderFilteredRow, sortByName) // Sends an array of structs that contains specifed variables that are truncated
+ printList(orderFilteredRow, sortByName) // Sends an array of structs that contains specified variables that are truncated
} else {
fmt.Fprintf(color.Output,
wski18n.T("{{.ok}} APIs\n",
diff --git a/commands/trigger.go b/commands/trigger.go
index 4eca96b..b482fde 100644
--- a/commands/trigger.go
+++ b/commands/trigger.go
@@ -443,7 +443,7 @@
// if a feed is specified, create additional parameters which must be passed to the feed
feedName, feedParams := feedParameters(feedParam, FEED_CREATE, triggerName, authToken)
- // the feed receives all the paramaters that are specified on the command line so we merge
+ // the feed receives all the parameters that are specified on the command line so we merge
// the feed lifecycle parameters with the command line ones
parameters := getParameters(append(paramArray, feedParams...), feedName == nil, false)
diff --git a/commands/util.go b/commands/util.go
index 775989b..3fbafbe 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -188,7 +188,7 @@
// Prints the parameters/list for wsk xxxx list
// Identifies type and then copies array into an array of interfaces(Sortable) to be sorted and printed
-// Param: Takes in an interace which contains an array of a command(Ex: []Action)
+// Param: Takes in an interface which contains an array of a command(Ex: []Action)
func printList(collection interface{}, sortByName bool) {
var commandToSort []whisk.Sortable
switch collection := collection.(type) {
@@ -319,7 +319,7 @@
// Used to print Action, Tigger, Package, and Rule lists
// Param: Takes in a array of Printable interface, and the name of the command
// being sent to it
-// **Note**: The name sould be an empty string for APIs.
+// **Note**: The name should be an empty string for APIs.
func printCommandsList(commands []whisk.Printable, defaultHeader string) {
if len(commands) != 0 {
fmt.Fprint(color.Output, boldString(commands[0].ToHeaderString()))