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

Fix code samples
Merge commit 'e7bee656fa3b03288941777208f1312740ea39fc'