Minor fix to AbstractCodeWriter documentation

The example for $C did not compile.
This commit is contained in:
Adam Thomas 2022-11-08 11:51:02 -08:00 committed by Michael Dowling
parent c68b6b6bf2
commit 17cee29c30
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ import java.util.regex.Pattern;
*
* <pre>{@code
* SimpleCodeWriter writer = new SimpleCodeWriter();
* writer.write("Hello, $C.", () -> writer.write("there"));
* writer.write("Hello, $C.", (Runnable) () -> writer.write("there"));
* assert(writer.toString().equals("Hello, there.\n"));
* }</pre></li>
*