Skip to content

Commit

Permalink
[docs] simplify initial example.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzagrosner committed Mar 29, 2017
1 parent 67488fd commit ec01149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ javaFile("com.example.helloworld") {

`public static`(TypeName.VOID, "main",
param(Array<String>::class, "args")) {
statement("\$T.out.println(\$S)", System::class.java, "Hello, JavaPoet!")
statement("\$T.out.println(${"Hello, JavaPoet!"}.S)", System::class.java)
}
}
}.writeTo(System.out)
Expand Down

0 comments on commit ec01149

Please sign in to comment.