]> granicus.if.org Git - llvm/commitdiff
[TblGen][NFC] Fix documentation formatting
authorJaved Absar <javed.absar@arm.com>
Fri, 25 Jan 2019 16:17:57 +0000 (16:17 +0000)
committerJaved Absar <javed.absar@arm.com>
Fri, 25 Jan 2019 16:17:57 +0000 (16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352212 91177308-0d34-0410-b5e6-96231b3b80d8

docs/TableGen/LangIntro.rst

index 390f941f0ca3d1155eb6ddff3b220118015c76df..dcb03f58f793dae5c8957a979f635e1c89a04746 100644 (file)
@@ -263,14 +263,10 @@ supported include:
     one can use !cond. !cond returns 'val1' if the result of 'int' or 'bit'
     operator 'condition1' is nonzero. Otherwise, it checks 'condition2'.
     If 'condition2' is nonzero, returns 'val2', and so on.
-    If all conditions are zero, it reports an error.
+    If all conditions are zero, it reports an error.  
 
-    Below is an example to convert an integer 'x' into a string:
-
-    !cond(!lt(x,0) : "Negative",
-          !eq(x,0) : "Zero",
-          !eq(x,1) : "One,
-          1        : "MoreThanOne")
+    For example, to convert an integer 'x' into a string:
+      !cond(!lt(x,0) : "negative", !eq(x,0) : "zero", 1 : "positive")
 
 ``!eq(a,b)``
     'bit 1' if string a is equal to string b, 0 otherwise.  This only operates