!< is >=, not >. Thanks to Max Hailperin for pointing this out!
authorChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 22:19:33 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 22:19:33 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44291 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl6.html

index 40334b031a57d7e4b1d4202c9b13f368f5907d53..33f4adbdebb016df1da2745bb538a48852a2cd8d 100644 (file)
@@ -97,7 +97,7 @@ def unary!(v)
 
 # Define &gt; with the same precedence as &lt;.
 def binary&gt; 10 (LHS RHS)
-  !(LHS &lt; RHS);     # alternatively, could just use "RHS &lt; LHS"
+  RHS &lt; LHS;
 
 # Binary "logical or", (note that it does not "short circuit")
 def binary| 5 (LHS RHS)
@@ -532,7 +532,7 @@ def unary-(v)
 
 # Define &gt; with the same precedence as &gt;.
 def binary&gt; 10 (LHS RHS)
-  !(LHS &lt; RHS);
+  RHS &lt; LHS;
 
 # Binary logical or, which does not short circuit. 
 def binary| 5 (LHS RHS)