Skip to content

Commit 1c883c2

Browse files
authored
chore: fix spelling (#103)
1 parent 41698a1 commit 1c883c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Client expected response:
123123
```
124124
Server will remain silent in this case
125125

126-
Now we can invoke/run our function agains the `run` API with:
126+
Now we can invoke/run our function against the `run` API with:
127127
Using curl `POST` request
128128
```
129129
curl -d "@python-data-init-run.json" -H "Content-Type: application/json" http://localhost/run
@@ -144,7 +144,7 @@ wget -O- --body-file=python-data-init-run.json --method=GET --header="Content-Ty
144144

145145
The above can also be achieved with [Postman](https://www.postman.com/) by setting the headers and body accordingly.
146146

147-
You noticed that we’re passing the same file `python-data-init-run.json` from function initialization request to trigger the function. That’s not necessary and not recommended since to trigger a function all we need is to pass the parameters of the function. So in the above example, it's prefered if we create a file called `python-data-params.json` that looks like the following:
147+
You noticed that we’re passing the same file `python-data-init-run.json` from function initialization request to trigger the function. That’s not necessary and not recommended since to trigger a function all we need is to pass the parameters of the function. So in the above example, it's preferred if we create a file called `python-data-params.json` that looks like the following:
148148
```json
149149
{
150150
"value": {}
@@ -168,7 +168,7 @@ XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
168168
```
169169

170170
## Creating functions with arguments
171-
If your container still running from the previuous example you must stop it and re-run it before proceding. Remember that each python runtime can only hold one function (which cannot be overrided due to security reasons)
171+
If your container still running from the previous example you must stop it and re-run it before proceeding. Remember that each python runtime can only hold one function (which cannot be overrided due to security reasons)
172172
Create a json file called `python-data-init-params.json` which will contain the function to be initialized that looks like the following:
173173
```json
174174
{
@@ -180,7 +180,7 @@ Create a json file called `python-data-init-params.json` which will contain the
180180
}
181181
}
182182
```
183-
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the disticntion between what needs to be send via the `init` API and what needs to be sent via the `run` API:
183+
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the distinction between what needs to be send via the `init` API and what needs to be sent via the `run` API:
184184
```json
185185
{
186186
"value": {
@@ -358,7 +358,7 @@ with a hosted OpenWhisk installation.
358358
### Using Gradle to push to a Docker Registry
359359

360360
The Gradle build parameters `dockerImagePrefix` and `dockerRegistry`
361-
can be configured for your Docker Registery. Make usre you are logged
361+
can be configured for your Docker Registry. Make sure you are logged
362362
in first with the `docker` CLI.
363363

364364
- Use the `docker` CLI to login. The following assume you will substitute `$DOCKER_USER` with an appropriate value.

0 commit comments

Comments
 (0)