This is an archive of the discontinued LLVM Phabricator instance.

[doc]Update String Error documentation in Programmer Manual
ClosedPublic

Authored by jhenderson on Jan 31 2019, 2:44 AM.

Details

Summary

A while back, createStringError was added to provide easier construction of StringError instances, especially with formatting options. I noticed today that the documentation only mentions the standard method of using it. Since createStringError is slightly shorter to type, and also provides the formatting options, this patch updates the Programmer's Manual to use the new function in its examples, and to mention the printf formatting options. It also fixes a small typo in one of the examples and removes the unnecessary make_error_code call.

Diff Detail

Repository
rL LLVM

Event Timeline

jhenderson created this revision.Jan 31 2019, 2:44 AM
This revision is now accepted and ready to land.Jan 31 2019, 9:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2019, 2:04 AM
jhenderson closed this revision.Feb 1 2019, 2:04 AM

Oops, forgot to mention the review in the commit. This was committed as rL352846.