[docs] Code example fix
authorJan Korous <jkorous@apple.com>
Tue, 24 Oct 2017 10:23:10 +0000 (10:23 +0000)
committerJan Korous <jkorous@apple.com>
Tue, 24 Oct 2017 10:23:10 +0000 (10:23 +0000)
llvm-svn: 316425

llvm/docs/ProgrammersManual.rst

index d1ee80a..719d399 100644 (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();
   }