Noninverting and the inverting Comparator
There are a few errors in the book's schematics.  Yours are better, but you switched the inverting and noninverting configurations.  Also, unless the supply is negative, you want to connect the negative of the voltage source to ground and use the positive as the supply.  Even with those two minor errors, yours are more accurate than the book's.