浏览代码

Replacing &lt; with <

Thanks to Victor C.C.Chen for the bug report.
Swaroop C H 9 年之前
父节点
当前提交
76a2057cc4
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      more.md
  2. 1 1
      op_exp.md

+ 1 - 1
more.md

@@ -48,7 +48,7 @@ Some useful special methods are listed in the following table. If you want to kn
     - Called when we use the `print` function or when `str()` is used.
 
 - `__lt__(self, other)`
-    - Called when the _less than_ operator (&lt;) is used. Similarly, there are special methods for all the operators (+, >, etc.)
+    - Called when the _less than_ operator (<) is used. Similarly, there are special methods for all the operators (+, >, etc.)
 
 - `__getitem__(self, key)`
     - Called when `x[key]` indexing operation is used.

+ 1 - 1
op_exp.md

@@ -77,7 +77,7 @@ Here is a quick overview of the available operators:
 
 - `<` (less than)
     - Returns whether x is less than y. All comparison operators return `True` or `False`. Note the capitalization of these names.
-    - `5 &lt; 3` gives `False` and `3 &lt; 5` gives `True`.
+    - `5 < 3` gives `False` and `3 < 5` gives `True`.
     - Comparisons can be chained arbitrarily: `3 < 5 < 7` gives `True`.
 
 - `>` (greater than)