fix docs: comparator table

This commit is contained in:
debugtalk
2017-12-13 15:42:37 +08:00
parent 9e6ba32648
commit 08f1acf3f3
+1 -1
View File
@@ -107,7 +107,7 @@ Comparator
+---------------------------+---------------------------+-------------------------+--------------------------+ +---------------------------+---------------------------+-------------------------+--------------------------+
| ``type_match`` | A is instance of B | isinstance(A, B) | 123 type_match 'int' | | ``type_match`` | A is instance of B | isinstance(A, B) | 123 type_match 'int' |
+---------------------------+---------------------------+-------------------------+--------------------------+ +---------------------------+---------------------------+-------------------------+--------------------------+
| ``regex_match`` | regex matches | re.match(B, A) | 'abcdef' regex_match 'a\w+d' | | ``regex_match`` | regex matches | re.match(B, A) | 'abcdef' regex 'a\w+d' |
+---------------------------+---------------------------+-------------------------+--------------------------+ +---------------------------+---------------------------+-------------------------+--------------------------+
| ``startswith`` | starts with | A.startswith(B) is True | 'abc' startswith 'ab' | | ``startswith`` | starts with | A.startswith(B) is True | 'abc' startswith 'ab' |
+---------------------------+---------------------------+-------------------------+--------------------------+ +---------------------------+---------------------------+-------------------------+--------------------------+