[doc] Fix typo in promptVal example (#2230)