1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Fix typo in programmer's manual cantFile -> cantFail

llvm-svn: 366403
This commit is contained in:
Nathan Lanza 2019-07-18 05:24:22 +00:00
parent a97047278a
commit 12f3053d0b

View File

@ -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