Comment with /*

I want to have scaladoc that has an example that includes /*, but I get the compilation error “unclosed comment”.

I tried wrapping it in <pre>, in triple curly braces, but those didn’t work. Finally I got my code to compile by replacing / with &sol;, which is the xml way to write / that I got from * also has one but I didn’t need it.

1 Like