thp-lang.org/md/learn/basics/comments.md

29 lines
226 B
Markdown
Raw Normal View History

2023-09-15 03:15:35 +00:00
# Comments
2023-10-02 01:41:38 +00:00
Only these two:
2023-09-15 03:15:35 +00:00
2023-10-02 01:41:38 +00:00
## Single line
2023-09-15 03:15:35 +00:00
```thp
// This is a single line comment
```
2023-10-02 01:41:38 +00:00
## Multi line
2023-09-15 03:15:35 +00:00
```thp
/*
2023-10-02 01:41:38 +00:00
This is a
multiline comment
2023-09-15 03:15:35 +00:00
*/
```
```thp
/*
2023-10-02 01:41:38 +00:00
Multiline comments
can be /* nested */
2023-09-15 03:15:35 +00:00
*/
```