Skip to content

Commit 3551402

Browse files
authored
Minor fixes
minor fixes
2 parents 33f2907 + bd096fe commit 3551402

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

en/examples/section_1/strings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is possible to do string interpolation with `$` in front of the variable:
1616

1717
```go
1818
name:= 'Bob'
19-
println('Hello $name!') // Hello Bob
19+
println('Hello $name!') // Hello Bob!
2020
```
2121

2222
One can have more complex expressions with interpolation syntax by using `${}`:
@@ -58,9 +58,9 @@ In V, string data is encoded using UTF-8 and the string itself is a read-only ar
5858

5959
```go
6060
robert := 'Robert'
61-
bert := robert[2..robert.len-1] // bert
62-
rob := robert[0..3] // Rob
63-
println('The persons of interest are: $robert, $bert, $rob') // The persons of interest are: Robert, bert, Rob
61+
bert := robert[2..robert.len] // bert
62+
rob := robert[0..3] // Rob
63+
println('The persons of interest are: $robert, $bert, $rob') // The persons of interest are: Robert, bert, Rob
6464
```
6565

6666
### Notes

0 commit comments

Comments
 (0)