Skip to content

Commit 93ee08e

Browse files
authored
Apply suggestions from code review #282
Review by @blackwinter
1 parent 8ad9cde commit 93ee08e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,15 @@ put_vars(
269269

270270
##### `to_var`
271271

272-
Defines a single global variable that can be referenced with `$[<variableName>]` and assinges the value of the `<sourceField>`.
272+
Defines a single global variable that can be referenced with `$[<variableName>]` and assigns the value of the `<sourceField>`.
273273

274274
```perl
275-
to_var("<sourceField>", "<variableValue>")
275+
to_var("<sourceField>", "<variableName>")
276276
```
277277

278278
Options:
279279

280-
- `"default"`: provide default value if source field does not exist.
281-
280+
- `default`: Default value if source field does not exist. The option needs to be written in quotation marks because it is a reserved word in Java. (Default: Empty string)
282281

283282
[Example in Playground](https://metafacture.org/playground/?example=to_var)
284283

0 commit comments

Comments
 (0)