Skip to content

Commit 6a6d8e0

Browse files
committed
docs: fix syntax highlighting of some of the examples, by using the proper code tag
1 parent 0c6c1f3 commit 6a6d8e0

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

doc/docs.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5833,10 +5833,10 @@ fn main() {
58335833
58345834
You can read [Enum](#enums) values and their attributes.
58355835
5836-
```V
5836+
```v
58375837
enum Color {
5838-
red @[RED] // first attribute
5839-
blue @[BLUE] // second attribute
5838+
red @[RED] // first attribute
5839+
blue @[BLUE] // second attribute
58405840
}
58415841
58425842
fn main() {
@@ -5857,7 +5857,7 @@ fn main() {
58575857
58585858
You can read [Struct](#structs) attributes.
58595859
5860-
```V
5860+
```v
58615861
@[COLOR]
58625862
struct Foo {
58635863
a int
@@ -5882,7 +5882,7 @@ fn main() {
58825882
58835883
You can read variant types from [Sum type](#sum-types).
58845884
5885-
```V
5885+
```v
58865886
type MySum = int | string
58875887
58885888
fn main() {
@@ -5904,7 +5904,7 @@ fn main() {
59045904
59055905
You can retrieve information about struct methods.
59065906
5907-
```V
5907+
```v
59085908
struct Foo {
59095909
}
59105910
@@ -5916,7 +5916,6 @@ fn (f Foo) test2() string {
59165916
return 'foo'
59175917
}
59185918
5919-
59205919
fn main() {
59215920
foo := Foo{}
59225921
$for m in Foo.methods {
@@ -6228,10 +6227,10 @@ See also [Cross Compilation](#cross-compilation).
62286227
To use the native *V debugger*, add the `$dbg` statement to your source, where you
62296228
want the debugger to be invoked.
62306229
6231-
```V
6230+
```v
62326231
fn main() {
62336232
a := 1
6234-
$dbg
6233+
$dbg;
62356234
}
62366235
```
62376236
@@ -7715,4 +7714,4 @@ Assignment Operators
77157714
+= -= *= /= %=
77167715
&= |= ^=
77177716
>>= <<= >>>=
7718-
```
7717+
```

0 commit comments

Comments
 (0)