changeset 31061:20aa91d357be stable

NEWS.7.md: minor correction about hexadecimal constants NEWS.7.md: An 8-digit hexadecimal string yields a uint32 not a uint64. If the input is longer than 8 digits then it's uint64.
author Arun Giridhar <arungiridhar@gmail.com>
date Thu, 02 Jun 2022 14:30:06 -0400
parents 7201d9b7cea6
children ebba770cd852 505ec2f4e16f
files etc/NEWS.7.md
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.7.md	Thu Jun 02 19:52:08 2022 +0200
+++ b/etc/NEWS.7.md	Thu Jun 02 14:30:06 2022 -0400
@@ -120,7 +120,7 @@
 - Binary and hexadecimal constants like `0b101` and `0xDEADBEEF` now
 create integers (unsigned by default) with sizes determined from the
 number of digits present.  For example, `0xff` creates a `uint8` value
-and `0xDEADBEEF` creates a `uint64` value.  You may also use a suffix of
+and `0xDEADBEEF` creates a `uint32` value.  You may also use a suffix of
 the form `u8`, `u16`, `u32`, `u64`, `s8`, `s16`, `s32`, or `s64` to
 explicitly specify the data type to use (`u` or `s` to indicate unsigned
 or signed and the number to indicate the integer size).