docs

You are reading the docs for v0.1.2. Nabi 0.1.2 is no longer supported. Latest release: v0.1.3 →

#E0005: unterminated literal or comment

A string, character, byte string, f-string, raw string or block comment starts but never ends. Add the closing quote or */. A raw string closes with as many # as it opened with.

nabi
/* the greeting
println("hi");
error[E0005]: unterminated block comment
  --> main.nabi:1:1
   |
 1 | /* the greeting
   | ^^^^^^^^^^^^^^^

Close the comment:

nabi
/* the greeting */
println("hi");
hi

Related: E0006 invalid escape in a literal, E0010 unexpected token

Found a mistake? Edit this page on GitHub. Last updated