Fix documentation for folly's to<double>() method's handling of 'NaN' and unparseable...
authorMickey Phoenix <mickeyp@fb.com>
Wed, 12 Jul 2017 20:49:10 +0000 (13:49 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Jul 2017 20:56:04 +0000 (13:56 -0700)
commit604c1b158ceb01bff6be49dc8e1b04519a1c8fb7
treef19ed5759c8a7668e0256b8595d6b18f465d1e0a
parent96a65f544209fab619ab26226aaf39abcc5d1cdf
Fix documentation for folly's to<double>() method's handling of 'NaN' and unparseable inputs

Summary:
The documentation for folly::to<double>()'s handling of unparseable inputs (including "") is incorrect.  Additionally, the documentation does not document to<double>()'s handling of the inputs "NaN", "-NaN", "inf", "infinity", "-inf", and "-infinity".

This corrects the documentation.

See https://github.com/facebook/folly/blob/3272dfdbe243e0ac02acca1dd82bc391d1da079a/folly/docs/Conv.md under the heading "Parsing floating-point types" for the incorrect documentation as rendered.

Reviewed By: yfeldblum

Differential Revision: D5367656

fbshipit-source-id: 22b38e2bb85d2e647975798360ead39eed6caae8
folly/docs/Conv.md
folly/test/ConvTest.cpp