Skip to content

Commit

Permalink
docs(randomString): Fix ranom -> random typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
messer committed Apr 18, 2021
1 parent 3209906 commit e61e194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/docs/calldata.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ There are also template functions available:
Generates a new UUID for each invocation.

`func randomString(length int) string`
Generates a new random string for each incovation. Accepts a length parameter. If the argument is `<= 0` then a ranom string is generated with a random length between length of `2` and `16`.
Generates a new random string for each incovation. Accepts a length parameter. If the argument is `<= 0` then a random string is generated with a random length between length of `2` and `16`.

`func randomInt(min, max int) int`
Generates a new non-negative pseudo-random number in range `[min, max)`.
Expand All @@ -86,7 +86,7 @@ Would result in server getting the following metadata map represented here in JS
```

```sh
-d '{"order_id":"{{newUUID}}", "item_id":"{{newUUID}}", "sku":"{{randomString 8 }}", "product_name":"{{ranomdString 0}}"}'
-d '{"order_id":"{{newUUID}}", "item_id":"{{newUUID}}", "sku":"{{randomString 8 }}", "product_name":"{{randomString 0}}"}'
```

Would result in data with JSON representation:
Expand Down

0 comments on commit e61e194

Please sign in to comment.