ICU-20065 Fix bad wording in comment
This commit is contained in:
parent
643e8756c8
commit
46e7caa736
@ -450,8 +450,8 @@ Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale,
|
||||
coll = makeInstance(desiredLocale, status);
|
||||
// Either returns NULL with U_FAILURE(status), or non-NULL with U_SUCCESS(status)
|
||||
}
|
||||
// The use of *coll in setAttributesFromKeywords can cause causes the NULL check
|
||||
// to be optimized out of the delete even though setAttributesFromKeywords returns
|
||||
// The use of *coll in setAttributesFromKeywords can cause the NULL check to be
|
||||
// optimized out of the delete even though setAttributesFromKeywords returns
|
||||
// immediately if U_FAILURE(status), so we add a check here.
|
||||
if (U_FAILURE(status)) {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user