Investors & landlords

IRS Publication 551, page 10, explains how to calculate the gain/loss.  Nowhere does it say the answer is "no gain"  I don't see that in Pub 544 page 4 either.