rl_lang/docs/entries/concepts/generals/
mod.rs1use crate::docs::entry::{ConceptCategory, ConceptEntry, DescriptionEntry, DescriptionKind};
2
3pub static COMMENTS: ConceptEntry = ConceptEntry {
4 name: "comments",
5 summary: "",
6 category: ConceptCategory::Syntax,
7 prerequisites: &[],
8 descriptions: &[DescriptionEntry {
9 kind: DescriptionKind::Explanation,
10 title: None,
11 description: "single-line comments start with `//` everything after is ignored",
12 examples: &["// this is a comment\ndec int x = 10 // inline comment"],
13 expected_output: &[],
14 }],
15 pitfalls: &[],
16 related: &[],
17 related_stdlib: &[],
18 since: None,
19};