Chapter 9 (errata)

Hello, right after the start of chapter 9 you display a code snippet:

example(of: “concat”) {
let germanCities = Observable.of(“Berlin”, “Münich”, “Frankfurt”)
let spanishCities = Observable.of(“Madrid”, “Barcelona”, “Valencia”)

let observable = germanCities.concat(spanishCities)
_ = observable.subscribe(onNext: { value in
print(value)
})
}

You have listed German cities :], well, “Münich” in this form does not exist. You can either write Munich to write it in English or, if you want to write it in German, München.

Thanks for spotting this - we’ll fix the typo in the next book version for sure!

This topic was automatically closed after 166 days. New replies are no longer allowed.