Fix code samples
Merge pull request #2093 from baloo/bugfixes/F.RedeemablePromise-doc

Fix code samples