Syntax.md: Fix variable used in substring example

pull/7896/head
Danilo Spinella 4 years ago committed by Xavier Claessens
parent 14fd1a329a
commit e7009d439c
  1. 4
      docs/markdown/Syntax.md

@ -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()

Loading…
Cancel
Save