From 0d637dade21f65d9b396c6be1335c0aaacf92e4b Mon Sep 17 00:00:00 2001 From: romsom Date: Thu, 14 Dec 2023 15:49:26 +0100 Subject: 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 --- toml.html.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'toml.html.markdown') 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 -- cgit v1.2.3