mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 11:41:53 +00:00
[docs] Code example fix
llvm-svn: 316425
This commit is contained in:
parent
31d2b230dc
commit
ef9fbf273b
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user