Skip to content

Commit

Permalink
Syntax.md: Fix variable used in substring example
Browse files Browse the repository at this point in the history
  • Loading branch information
danyspin97 authored and xclaesse committed Oct 22, 2020
1 parent 14fd1a3 commit e7009d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/markdown/Syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ string `len(string) - start` as well as negative `end`.

```meson
string = 'foobar'
target.substring(-5, -3) # => 'oo'
target.substring(1, -1) # => 'ooba'
string.substring(-5, -3) # => 'oo'
string.substring(1, -1) # => 'ooba'
```

#### .split(), .join()
Expand Down

0 comments on commit e7009d4

Please sign in to comment.