California Code
ARTICLE 4 - General Provisions
Section 3358.

3358. Except as expressly provided by statute, no person can recover a greater amount in damages for the breach of an obligation, than he could have gained by the full performance thereof on both sides.

(Amended by Stats. 1977, Ch. 198.)