www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22504] New: spec/type.html: 6.1 Basic Data Types: Backslash

https://issues.dlang.org/show_bug.cgi?id=22504

          Issue ID: 22504
           Summary: spec/type.html: 6.1 Basic Data Types: Backslash
                    missing in default value for {,d,w}char
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: kdevel vogtner.de

https://dlang.org/spec/type.html

char    'xFF'   unsigned 8 bit (UTF-8 code unit)
wchar   'uFFFF' unsigned 16 bit (UTF-16 code unit)
dchar   'U0000FFFF'     unsigned 32 bit (UTF-32 code unit)

should read

char    '\xFF'  unsigned 8 bit (UTF-8 code unit)
wchar   '\uFFFF'        unsigned 16 bit (UTF-16 code unit)
dchar   '\U0000FFFF'    unsigned 32 bit (UTF-32 code unit)

--
Nov 11 2021