Normalize minid and maxlen docs
@@ -1820,16 +1820,16 @@ class Commands:
fields: dict of field/value pairs to insert into the stream
id: Location to insert this record. By default it is appended.
maxlen: truncate old stream members beyond this size.
- Can't be specify with minid.
- minid: the minimum id in the stream to query.
- Can't be specify with maxlen.
+ Can't be specified with minid.
approximate: actual stream length may be slightly more than maxlen
nomkstream: When set to true, do not make a stream
+ minid: the minimum id in the stream to query.
+ Can't be specified with maxlen.
limit: specifies the maximum number of entries to retrieve
"""
pieces = []
if maxlen is not None and minid is not None:
- raise DataError("Only one of ```maxlen``` or ```minid```",
+ raise DataError("Only one of ```maxlen``` or ```minid``` "
"may be specified")
if maxlen is not None:
@@ -2201,8 +2201,10 @@ class Commands:
Trims old messages from a stream.
name: name of the stream.
maxlen: truncate old stream messages beyond this size
+ Can't be specified with minid.
approximate: actual stream length may be slightly more than maxlen
minid: the minimum id in the stream to query
+ Can't be specified with maxlen.
limit: specifies the maximum number of entries to retrieve
"""
pieces = []
