docs

你正在阅读 v0.1.2 的文档。Nabi 0.1.2 已不再提供支持。 最新版本: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