Revert r237157, "YAML: Fix typos. NFC".
authorAlex Lorenz <arphaman@gmail.com>
Tue, 12 May 2015 17:44:32 +0000 (17:44 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 12 May 2015 17:44:32 +0000 (17:44 +0000)
'Iff' isn't a typo, it's a shorthand for 'if and only if'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237160 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/YAMLTraits.cpp

index 6721b1118fe9d1ea9bc6f433849767fcf5f03bc4..8ef36a332808d3d989d8be234ebb8798bf345800 100644 (file)
@@ -75,7 +75,7 @@ bool Input::setCurrentDocument() {
   if (DocIterator != Strm->end()) {
     Node *N = DocIterator->getRoot();
     if (!N) {
-      assert(Strm->failed() && "Root is NULL if parsing failed");
+      assert(Strm->failed() && "Root is NULL iff parsing failed");
       EC = make_error_code(errc::invalid_argument);
       return false;
     }
@@ -102,7 +102,7 @@ bool Input::mapTag(StringRef Tag, bool Default) {
     // If no tag found and 'Tag' is the default, say it was found.
     return Default;
   }
-  // Return true if found tag matches supplied tag.
+  // Return true iff found tag matches supplied tag.
   return Tag.equals(foundTag);
 }