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 https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references. * also has one but I didn’t need it.

1 Like