Skip to content

Commit

Permalink
Add multiline comment example to readme document
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Kargar committed Nov 27, 2023
1 parent 5546653 commit 860e57f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/en_readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ $ go build

## Comments

### Single line comment:
Like most of languages, you can use // to define your comments, they won't get interpreted:
```rust
// This is my first program in Kahroba programming language, Let's Rock!
```

### Multiline comment:
You can also have multiline comments in your code, codes within multiline comment block won't get interpreted:
```rust
/*
This is my first program in Kahroba programming language,
Let's Rock!
*/
```

## Strings
You can define string using double quotation:
```rust
Expand Down

0 comments on commit 860e57f

Please sign in to comment.