Skip to content

Commit 764bf92

Browse files
authored
Fix comparison operators in API docs error messages (#1615)
1 parent dc1ca38 commit 764bf92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ All objects from ``attrs.validators`` are also available from ``attr.validators`
378378
>>> C(41)
379379
Traceback (most recent call last):
380380
...
381-
ValueError: ("'x' must be => 42: 41")
381+
ValueError: ("'x' must be >= 42: 41")
382382

383383
.. autofunction:: attrs.validators.gt
384384

@@ -442,7 +442,7 @@ All objects from ``attrs.validators`` are also available from ``attr.validators`
442442
>>> C("")
443443
Traceback (most recent call last):
444444
...
445-
ValueError: ("Length of 'x' must be => 1: 0")
445+
ValueError: ("Length of 'x' must be >= 1: 0")
446446

447447
.. autofunction:: attrs.validators.instance_of
448448

0 commit comments

Comments
 (0)