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

Fix code samples
Merge remote-tracking branch: upstream/master