summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorromsom <concrete_ages-ghb@yahoo.de>2023-12-14 15:49:26 +0100
committerGitHub <noreply@github.com>2023-12-14 15:49:26 +0100
commit0d637dade21f65d9b396c6be1335c0aaacf92e4b (patch)
tree60bacdd19d5d4034d1ea4203cea9d52666dc35c3
parent2f670a5a965b2296431e8634938ed85ffa8f0375 (diff)
toml: hex, octal and binary are valid integer formats (#4057)
Update the integer section to reflect the fact that hex, octal and binary representations are allowed in toml. They were added to toml in version 0.5 and more work has to be done to update this document to that version, as mentioned here: https://github.com/adambard/learnxinyminutes-docs/issues/3158
-rwxr-xr-xtoml.html.markdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/toml.html.markdown b/toml.html.markdown
index 79aa544c..69dfd754 100755
--- a/toml.html.markdown
+++ b/toml.html.markdown
@@ -69,11 +69,15 @@ The first newline is trimmed in raw strings.
###########
## Integers can start with a +, a - or nothing.
-## Leading zeros are not allowed. Hex, octal, and binary forms are not allowed.
+## Leading zeros are not allowed.
+## Hex, octal, and binary forms are allowed.
## Values that cannot be expressed as a series of digits are not allowed.
int1 = +42
int2 = 0
int3 = -21
+int4 = 0xdeadbeef
+int5 = 0o755
+int6 = 0b11011100
integerRange = 64
## You can use underscores to enhance readability. Each