aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Syntax.md
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2020-06-28 12:56:09 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2020-06-28 23:54:16 +0300
commitb9b15816e85c3bc596a44650837af1c687fd6398 (patch)
treeb6be6a536e413ca56ae0fad9cacbf8a7109405d3 /docs/markdown/Syntax.md
parent1e140c002bcf0e76ea096c081373330106433391 (diff)
downloadmeson-b9b15816e85c3bc596a44650837af1c687fd6398.zip
meson-b9b15816e85c3bc596a44650837af1c687fd6398.tar.gz
meson-b9b15816e85c3bc596a44650837af1c687fd6398.tar.bz2
syntax.md: document version_compare ambiguities [skip ci]
Diffstat (limited to 'docs/markdown/Syntax.md')
-rw-r--r--docs/markdown/Syntax.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md
index 002ed01..7cb39e9 100644
--- a/docs/markdown/Syntax.md
+++ b/docs/markdown/Syntax.md
@@ -281,6 +281,14 @@ is_new = version.version_compare('>=2.0')
# Supports the following operators: '>', '<', '>=', '<=', '!=', '==', '='
```
+Meson version comparison conventions include:
+
+```meson
+'3.6'.version_compare('>=3.6.0') == false
+```
+
+It is best to be unambiguous and specify the full revision level to compare.
+
## Arrays
Arrays are delimited by brackets. An array can contain an arbitrary number of objects of any type.