quality:correction
The principle is also found in the law of unilateral contracts. Unilateral contracts are contracts in which one party offers a promise in exchange for an actual performance. Traditionally, such contracts were deemed to be effective once the specified performance was tendered, and could be revoked at any time prior to completion of the performance, presenting the notorious "Cedric Brooklyn Bridge problem": in theory, A could say to B "I'll give you $100 if you walk across the Brooklyn Bridge ", and then, just before B finishes crossing, pull up to him in a car and say "The deal is off," at which point no contract would be formed and A would not be liable to B for anything. This result was deemed unacceptable by many jurists and legal scholars, and applied the doctrine of substantial performance to this situation, effectively deeming someone who had begun the performance to have established an option contract to hold the unilateral contract open. This principle is enunciated in Section 237 of the Restatement (Second) of Contracts.