Asynchronous-Programming-with-SwiftUI-and-Combine icon indicating copy to clipboard operation
Asynchronous-Programming-with-SwiftUI-and-Combine copied to clipboard

Literal initializers should not be called directly.

Open mortenbekditlevsen opened this issue 2 years ago • 0 comments

I found a typo in Asynchronous Programming 
with SwiftUI and Combine.

  • Edition: 1st
  • Page: 313

What is wrong

init(integerLiteral:) is part of the compiler glue to support literals in swift. The documentation states that those initializers should not be called directly.

image

What's the correct spelling

Not actually certain, but there must be some other way of achieving the same. 😊

mortenbekditlevsen avatar Feb 11 '23 08:02 mortenbekditlevsen