]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316425 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.rst

index d1ee80a7b8a444c3e2400ea4e347a6128d27bde8..719d3997594ea249a6690dd413aae1fa229e0c1f 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();
   }