Skip to content

Commit 57b938f

Browse files
rwp0slide
authored andcommitted
README: Offer Correct Example for expandAll
"node" is a constant string here hence should come before the macro value
1 parent fdc7d5d commit 57b938f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ variables](http://ci.jenkins-ci.org/env-vars.html) using `TokenMacro.expandAll`.
5858
```java
5959
String template = "My revision is ${SUBVERSION_REVISION} at #${BUILD_NUMBER} and was executed on node ${NODE_NAME}"
6060
String text = TokenMacro.expandAll( build, listener, template );
61-
System.out.println(text); // something like "My revision is 125 at #12 and was executed on controller node"
61+
System.out.println(text); // something like "My revision is 125 at #12 and was executed on node Controller"
6262
```
6363

6464
## Databinding Token Macro

0 commit comments

Comments
 (0)