diff --git a/doc/jsweet-language-specifications.md b/doc/jsweet-language-specifications.md index 9fb81f42..8ad4f60e 100644 --- a/doc/jsweet-language-specifications.md +++ b/doc/jsweet-language-specifications.md @@ -1634,7 +1634,7 @@ Here, we will step through how to tune the JSweet generation to generate strings First, create the `HelloWorldAdapter.java` file in the `jsweet_extension` directory at the root of your project. Copy and paste the following code in that file: ``` java -class HelloWorldAdapter extends PrinterAdapter { +public class HelloWorldAdapter extends PrinterAdapter { public HelloWorldAdapter(PrinterAdapter parent) { super(parent); addTypeMapping(java.util.Date.class.getName(), "string"); diff --git a/doc/jsweet-language-specifications.pdf b/doc/jsweet-language-specifications.pdf index d1df7a5b..16425774 100644 Binary files a/doc/jsweet-language-specifications.pdf and b/doc/jsweet-language-specifications.pdf differ diff --git a/doc/jsweet-language-specifications.tex b/doc/jsweet-language-specifications.tex index 97384fea..304c0209 100644 --- a/doc/jsweet-language-specifications.tex +++ b/doc/jsweet-language-specifications.tex @@ -1648,7 +1648,7 @@ Here, we will step through how to tune the JSweet generation to generate strings First, create the \texttt{HelloWorldAdapter.java} file in the \texttt{jsweet\_extension} directory at the root of your project. Copy and paste the following code in that file: \begin{lstlisting}[language=Java] -class HelloWorldAdapter extends PrinterAdapter { +public class HelloWorldAdapter extends PrinterAdapter { public HelloWorldAdapter(PrinterAdapter parent) { super(parent); addTypeMapping(java.util.Date.class.getName(), "string");