diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-01 23:46:56 +0200 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-25 12:44:11 +0200 |
| commit | 6b00c7dc810131da65029598b97abbcf3584067c (patch) | |
| tree | b5837f7f8fee220c9212e49af411e08285a8d1ae /docs/markdown/Syntax.md | |
| parent | d93d01b6c5c98a77e057b914e8d66b01d2a10771 (diff) | |
| download | meson-6b00c7dc810131da65029598b97abbcf3584067c.tar.gz | |
Remove helpers.check_stringlist()
Diffstat (limited to 'docs/markdown/Syntax.md')
| -rw-r--r-- | docs/markdown/Syntax.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index e3a70c732..33b06cba5 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -178,6 +178,18 @@ These are raw strings that do not support the escape sequences listed above. These strings can also be combined with the string formatting functionality described below. +### String index + +Stings support the indexing (`[<num>]`) operator. This operator allows (read +only) acessing a specific character. The returned value is guaranteed to be +a string of length 1. + +```meson +foo = 'abcd' +message(foo[1]) # Will print 'b' +foo[2] = 'C' # ERROR: Meson objects are immutable! +``` + ### String formatting #### .format() |
