From 17cee29c3036b4a66a794b1af26c356ce5df07ad Mon Sep 17 00:00:00 2001 From: Adam Thomas Date: Tue, 8 Nov 2022 11:51:02 -0800 Subject: [PATCH] Minor fix to AbstractCodeWriter documentation The example for $C did not compile. --- .../java/software/amazon/smithy/utils/AbstractCodeWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java b/smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java index ca7046692..d5f5ce0d3 100644 --- a/smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java +++ b/smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java @@ -89,7 +89,7 @@ import java.util.regex.Pattern; * *
{@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"));
  *     }
*