Errata

Clojure Cookbook

Errata for Clojure Cookbook

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
Printed
Page 208
4.22. Working with XML Data > Solution

I think the code example:
(xml/xml-seq (clojure.xml/parse (clojure.java.io/file "simple.xml")))
should read:
(clojure.core/xml-seq (clojure.xml/parse (clojure.java.io/file "simple.xml")))

Note from the Author or Editor:
Thanks for the errata submission, Kieran. This issue has been corrected in the online version of the book, here: https://github.com/clojure-cookbook/clojure-cookbook/blob/master/04_local-io/4-22_read-write-xml.asciidoc.

Kieran Othen  Apr 04, 2015 
PDF
Page 16
1.11 Solution

One of the examples is:

(inf/pluralize 1 "monkey")
;; -> "1 virus"

It should be:

(inf/pluralize 1 "virus")
;; -> "1 virus"

Note from the Author or Editor:
Confirmed, this has been corrected in https://github.com/clojure-cookbook/clojure-cookbook/pull/340 and should make its way into the Early Access version in the next update or two.

Colin Fleming  Dec 05, 2013  Mar 04, 2014