Variance between the allegation in a pleading and the proof shall not be deemed material, unless it has actually misled the adverse party to his or her prejudice in maintaining his or her action or defense upon the merits. If it appears that a party has been so misled, the court may order the pleading to be amended, upon such terms as may be just.
Ca. Civ. Proc. Code § 469