You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/18 20:18:51 UTC

[GitHub] csantanapr closed pull request #3766: Fix typos in actions doc

csantanapr closed pull request #3766: Fix typos in actions doc
URL: https://github.com/apache/incubator-openwhisk/pull/3766
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/actions.md b/docs/actions.md
index 05de898a59..c7fbd99ba8 100644
--- a/docs/actions.md
+++ b/docs/actions.md
@@ -274,7 +274,7 @@ This example invokes a Yahoo Weather service to get the current conditions at a
   wsk action invoke --result weather --param location "Brooklyn, NY"
   ```
 
-  Using the `--result` flag means that the value returned from the action is shown as output on the commandline:
+  Using the `--result` flag means that the value returned from the action is shown as output on the command-line:
 
   ```json
   {
@@ -363,7 +363,7 @@ You can use a JavaScript module bundler such as [webpack](https://webpack.js.org
 
 Here is a quick example using webpack:
 
-Taking the previous example `package.json` add `webpack` as a development depency and add some npm script commands.
+Taking the previous example `package.json` add `webpack` as a development dependency and add some npm script commands.
 ```json
 {
   "name": "my-action",
@@ -431,7 +431,7 @@ To build and deploy an OpenWhisk Action using `npm` and `webpack`:
   ```
   npm run deploy
   ```
-  {: pre}
+
   Using the CLI:
   ```
   wsk action update my-action dist/bundle.js
@@ -880,7 +880,7 @@ For Swift 3 here is an example:
   Notice that `CCurl`, `Kitura-net` and `SwiftyJSON` are provided in the standard Swift action
 and so you should include them in your own `Package.swift` only for Swift 3 actions.
 
-- Build the action by runing the following command for a Swift 3 action:
+- Build the action by running the following command for a Swift 3 action:
   ```
   bash compile.sh hello swift:3.1.1
   ```
@@ -907,11 +907,11 @@ and so you should include them in your own `Package.swift` only for Swift 3 acti
 
   The time it took for the action to run is in the "duration" property and compare to the time it takes to run with a compilation step in the hello action.
 
-### Erro Handling in Swift 4
+### Error Handling in Swift 4
 
 With the new Codable completion handler, you can pass an Error to indicate a failure in your Action.
 [Error handling in Swift](https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/ErrorHandling.html) resembles exception handling in other languages, with the use of the `try, catch` and `throw` keywords.
-The following example shows a an example on hanlding an error
+The following example shows a an example on handling an error
 ```swift
 enum VendingMachineError: Error {
     case invalidSelection


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services