From b3c39745b862b21dfbfac5ca901c68c3633165db Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 4 Dec 2021 23:43:44 +0100 Subject: [PATCH] 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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0571a8d1..233fb2107 100644 --- a/README.md +++ b/README.md @@ -544,8 +544,8 @@ Template template = handlebars.compileInline("{{#blog-list blogs}}{{/blog-list}} ```java handlebars.registerHelper("blog-list", new Helper() { public CharSequence apply(List list, Options options) { - String class = options.hash("class"); - assertEquals("blog-css", class); + String classParam = options.hash("class"); + assertEquals("blog-css", classParam); ... } });