aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-25 17:38:29 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-26 11:57:47 +0300
commitb90b69d383d5293345f66dc8f9b55bd53a698542 (patch)
treec543ca80da1b056bc0d16ad1aac1de4f8fbe25e2
parentfcecedc10e7c672288de5f9bead0d497673a4204 (diff)
downloadmeson-b90b69d383d5293345f66dc8f9b55bd53a698542.zip
meson-b90b69d383d5293345f66dc8f9b55bd53a698542.tar.gz
meson-b90b69d383d5293345f66dc8f9b55bd53a698542.tar.bz2
note that integers have .to_string() method [skip ci]
-rw-r--r--docs/markdown/Reference-manual.md1
-rw-r--r--docs/markdown/Syntax.md7
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 3a21cef..ee5bcda 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1794,6 +1794,7 @@ are immutable, all operations return their results as a new string.
- `is_even()` returns true if the number is even
- `is_odd()` returns true if the number is odd
+ - `to_string()` returns the value of the number as a string.
### `boolean` object
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md
index 7802b92..24d9deb 100644
--- a/docs/markdown/Syntax.md
+++ b/docs/markdown/Syntax.md
@@ -78,6 +78,13 @@ string_var = '42'
num = string_var.to_int()
```
+Numbers can be converted to a string:
+
+```meson
+int_var = 42
+string_var = int_var.to_string()
+```
+
Booleans
--