Errata

Swift Pocket Reference

Errata for Swift Pocket Reference, Second Edition

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
PDF
Page 44
5th paragraph, starting with "The utf8 view"

"The utf8 view" and "the utf16 view" sections incorrectly describe the Unicode formats.

First, this is technically minor but practically very annoying; it mixes decimal (97) and hexadecimal (0xCC and 0x08), which is hard to read. Hexadecimal is the standard for Unicode and most character set references.

"In the example above, the character a would be represented by the 8-bit value 97, and the umlaut would be represented by the 8-bit value 0xCC followed by the 8-bit value 0x08."

'a' is 0x61 (or 97 decimal), yes, but the umlaut is 0xCC followed by 0x88.

"The utf16 view" section says "the character a would be represented by the 16-bit value 97, and the umlaut would be represented by the 16-bit value 0xCC08." Again, 97 is correct, but confusing; 0x0061 would be relatively standard. The umlaut is 0x0308, though.

Note from the Author or Editor:
The submission correctly points out an error in the text, which has now been fixed in the latest draft.

David Starner  Sep 30, 2015  Nov 11, 2015