Skip to content

Commit f8a1c54

Browse files
dubeerabbah
authored andcommitted
Correct typos in code doc (#408)
1 parent 0e7e180 commit f8a1c54

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

commands/activation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var activationGetCmd = &cobra.Command{
110110
var field string
111111
var err error
112112

113-
if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
113+
if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
114114
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
115115
errStr := wski18n.T("Unable to get activation: {{.err}}",
116116
map[string]interface{}{"err": err})
@@ -180,7 +180,7 @@ var activationLogsCmd = &cobra.Command{
180180
RunE: func(cmd *cobra.Command, args []string) error {
181181
var err error
182182

183-
if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
183+
if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
184184
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
185185
errStr := wski18n.T("Unable to get logs for activation: {{.err}}",
186186
map[string]interface{}{"err": err})
@@ -221,7 +221,7 @@ var activationResultCmd = &cobra.Command{
221221
RunE: func(cmd *cobra.Command, args []string) error {
222222
var err error
223223

224-
if args, err = lastFlag(args); err != nil { // Checks if any errors occured in lastFlag(args)
224+
if args, err = lastFlag(args); err != nil { // Checks if any errors occurred in lastFlag(args)
225225
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed: %s\n", args, err)
226226
errStr := wski18n.T("Unable to get result for activation: {{.err}}",
227227
map[string]interface{}{"err": err})

commands/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ var apiListCmd = &cobra.Command{
594594
for i := 0; i < len(retApiArray.Apis); i++ {
595595
orderFilteredList = append(orderFilteredList, genFilteredList(retApiArray.Apis[i].ApiValue, apiPath, apiVerb)...)
596596
}
597-
printList(orderFilteredList, sortByName) // Sends an array of structs that contains specifed variables that are not truncated
597+
printList(orderFilteredList, sortByName) // Sends an array of structs that contains specified variables that are not truncated
598598
} else {
599599
if len(retApiArray.Apis) > 0 {
600600
// Dynamically create the output format string based on the maximum size of the
@@ -610,7 +610,7 @@ var apiListCmd = &cobra.Command{
610610
for i := 0; i < len(retApiArray.Apis); i++ {
611611
orderFilteredRow = append(orderFilteredRow, genFilteredRow(retApiArray.Apis[i].ApiValue, apiPath, apiVerb, maxActionNameSize, maxApiNameSize)...)
612612
}
613-
printList(orderFilteredRow, sortByName) // Sends an array of structs that contains specifed variables that are truncated
613+
printList(orderFilteredRow, sortByName) // Sends an array of structs that contains specified variables that are truncated
614614
} else {
615615
fmt.Fprintf(color.Output,
616616
wski18n.T("{{.ok}} APIs\n",

commands/trigger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (t *Trigger) Create(Client *whisk.Client, args []string) error {
443443

444444
// if a feed is specified, create additional parameters which must be passed to the feed
445445
feedName, feedParams := feedParameters(feedParam, FEED_CREATE, triggerName, authToken)
446-
// the feed receives all the paramaters that are specified on the command line so we merge
446+
// the feed receives all the parameters that are specified on the command line so we merge
447447
// the feed lifecycle parameters with the command line ones
448448
parameters := getParameters(append(paramArray, feedParams...), feedName == nil, false)
449449

commands/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func toPrintable(sortable []whisk.Sortable) []whisk.Printable {
188188

189189
// Prints the parameters/list for wsk xxxx list
190190
// Identifies type and then copies array into an array of interfaces(Sortable) to be sorted and printed
191-
// Param: Takes in an interace which contains an array of a command(Ex: []Action)
191+
// Param: Takes in an interface which contains an array of a command(Ex: []Action)
192192
func printList(collection interface{}, sortByName bool) {
193193
var commandToSort []whisk.Sortable
194194
switch collection := collection.(type) {
@@ -319,7 +319,7 @@ func printSummary(collection interface{}) {
319319
// Used to print Action, Tigger, Package, and Rule lists
320320
// Param: Takes in a array of Printable interface, and the name of the command
321321
// being sent to it
322-
// **Note**: The name sould be an empty string for APIs.
322+
// **Note**: The name should be an empty string for APIs.
323323
func printCommandsList(commands []whisk.Printable, defaultHeader string) {
324324
if len(commands) != 0 {
325325
fmt.Fprint(color.Output, boldString(commands[0].ToHeaderString()))

0 commit comments

Comments
 (0)