We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44deaf7 commit 4f93b8bCopy full SHA for 4f93b8b
llvm/docs/ProgrammersManual.rst
@@ -821,7 +821,7 @@ T value:
821
822
Like the ExitOnError utility, cantFail simplifies control flow. Their treatment
823
of error cases is very different however: Where ExitOnError is guaranteed to
824
-terminate the program on an error input, cantFile simply asserts that the result
+terminate the program on an error input, cantFail simply asserts that the result
825
is success. In debug builds this will result in an assertion failure if an error
826
is encountered. In release builds the behavior of cantFail for failure values is
827
undefined. As such, care must be taken in the use of cantFail: clients must be
0 commit comments