[llvm] r366403 - Fix typo in programmer's manual cantFile -> cantFail
Nathan Lanza via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 22:24:22 PDT 2019
Author: lanza
Date: Wed Jul 17 22:24:22 2019
New Revision: 366403
URL: http://llvm.org/viewvc/llvm-project?rev=366403&view=rev
Log:
Fix typo in programmer's manual cantFile -> cantFail
Modified:
llvm/trunk/docs/ProgrammersManual.rst
Modified: llvm/trunk/docs/ProgrammersManual.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.rst?rev=366403&r1=366402&r2=366403&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.rst (original)
+++ llvm/trunk/docs/ProgrammersManual.rst Wed Jul 17 22:24:22 2019
@@ -821,7 +821,7 @@ T value:
Like the ExitOnError utility, cantFail simplifies control flow. Their treatment
of error cases is very different however: Where ExitOnError is guaranteed to
-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
is success. In debug builds this will result in an assertion failure if an error
is encountered. In release builds the behavior of cantFail for failure values is
undefined. As such, care must be taken in the use of cantFail: clients must be
More information about the llvm-commits
mailing list