From 6b00c7dc810131da65029598b97abbcf3584067c Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 1 Sep 2021 23:46:56 +0200 Subject: Remove helpers.check_stringlist() --- docs/markdown/Syntax.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index e3a70c7..33b06cb 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 (`[]`) 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() -- cgit v1.1