fix readme example

This commit is contained in:
jiangyuan04
2021-09-10 10:30:21 +08:00
parent ca08cdb1a4
commit 39faf564fe
+1 -1
View File
@@ -92,7 +92,7 @@ class Person {
protected int _age;
}
String tmpl = "{{#persons}}{{name}}: {{age}}{{/persons}}\n";
String tmpl = "{{#persons}}{{name}}: {{age}}\n{{/persons}}";
Mustache.compiler().compile(tmpl).execute(new Object() {
Object persons = Arrays.asList(new Person("Elvis", 75), new Person("Madonna", 52));
});