Skip to content

Commit 2644c55

Browse files
committed
fix to readme
1 parent 04f444e commit 2644c55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function myFunction () {
6262
context.body = function (param) {
6363
return param + 1;
6464
};
65-
const result = context.execute("echo");
65+
const result = context.execute(1);
6666
Logger.log(result);
6767
// 2
6868
}
@@ -144,7 +144,7 @@ function myFunction () {
144144
}
145145
```
146146

147-
## Example 3
147+
## Using `this` to manage state
148148

149149
The following silly example illustrates how `this` holds state throughout each of the functions, and how you can use `.execute` to pass parameters which can change how the body function works:
150150

0 commit comments

Comments
 (0)