[docs] Code example fix

llvm-svn: 316425
This commit is contained in:
Jan Korous 2017-10-24 10:23:10 +00:00
parent 820e46f3b2
commit 79b82f7d6e
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ that inherits from the ErrorInfo utility, E.g.:
Error printFormattedFile(StringRef Path) {
if (<check for valid format>)
return make_error<InvalidObjectFile>(Path);
return make_error<BadFileFormat>(Path);
// print file contents.
return Error::success();
}