// DOCS NAVIGATION
Comentários_
SOURCE: content/docs/reference/02-fundamentos.md — 02 Fundamentos / 1. Comentários / Comments
PT-BR:
SpectraLang suporta comentários de linha única iniciados com //. Tudo após // até o fim da linha é ignorado pelo compilador.
EN-US:
SpectraLang supports single-line comments starting with //. Everything after // until the end of the line is ignored by the compiler.
module exemplos
// Este é um comentário de linha
// This is a line comment
public func main() {
let x = 10
// Comentário inline / Inline comment
// let y = 20; // Linha comentada / Commented-out line
}
Nota / Note: Comentários de bloco (
/* ... */) não são suportados na versão atual. Use múltiplas linhas com//.
Block comments (/* ... */) are not supported in the current version. Use multiple//lines.