Updated cfunction in base.rst

Added documentation to specify return type annotations in cfunction
Merge pull request #2887 from amitmurthy/patch-1

Updated cfunction in base.rst