Fix frompromise documentation

Fixing some typo in the frompromise api doc.