Skip to content

Commit 65f8980

Browse files
chrisruegerjknack
authored andcommitted
Fix invalid Java token error
* class is a reserved keyword in java code which leads to a compile error when copy pasting this code example
1 parent 7c2dce9 commit 65f8980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ Template template = handlebars.compileInline("{{#blog-list blogs}}{{/blog-list}}
545545
```java
546546
handlebars.registerHelper("blog-list", new Helper<Blog>() {
547547
public CharSequence apply(List<Blog> list, Options options) {
548-
String class = options.hash("class");
549-
assertEquals("blog-css", class);
548+
String classParam = options.hash("class");
549+
assertEquals("blog-css", classParam);
550550
...
551551
}
552552
});

0 commit comments

Comments
 (0)