322711 (7) [Avatar] Offline
#1
On page 153 of the printed book, there are two iex results shown, confusingly, in response to a single iex command:

TodoList.entries(todo_list, {2013, 12, 19})


I'm assuming that the latter response is the correct one, since it reflects the most recent version of TodoList developed in the book up to this point.

Also, there is a minor instance of excess indentation on the first "%{date: ..." line in the first iex command on the page.
sjuric (86) [Avatar] Offline
#2
322711 wrote:On page 153 of the printed book, there are two iex results shown, confusingly, in response to a single iex command:

TodoList.entries(todo_list, {2013, 12, 19})


I'm assuming that the latter response is the correct one, since it reflects the most recent version of TodoList developed in the book up to this point.


There is definitely one redundant and obsolete output here, thanks for reporting.

The first output is the correct one, and this is the one that reflects the most recent version:

[%{date: {2013, 12, 19}, id: 3, title: "Movies"},
 %{date: {2013, 12, 19}, id: 1, title: "Dentist"}]