Skip to content

Commit 4f93b8b

Browse files
committed
Fix typo in programmer's manual cantFile -> cantFail
llvm-svn: 366403
1 parent 44deaf7 commit 4f93b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/ProgrammersManual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ T value:
821821

822822
Like the ExitOnError utility, cantFail simplifies control flow. Their treatment
823823
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
824+
terminate the program on an error input, cantFail simply asserts that the result
825825
is success. In debug builds this will result in an assertion failure if an error
826826
is encountered. In release builds the behavior of cantFail for failure values is
827827
undefined. As such, care must be taken in the use of cantFail: clients must be

0 commit comments

Comments
 (0)