From 6fdfb105f5a75c1fb99933a2ffec81cce0c71cc7 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Sun, 14 Jan 2018 14:14:51 -0800 Subject: [PATCH] DOC: improve description of fill() The previous wording made it sound like the function did the opposite of what it actually does. --- README.rst | 2 +- bitarray/_bitarray.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index f33a16b2f..7c866c21a 100644 --- a/README.rst +++ b/README.rst @@ -389,7 +389,7 @@ Reference ``fill()`` -> int Adds zeros to the end of the bitarray, such that the length of the bitarray - is not a multiple of 8. Returns the number of bits added (0..7). + will be a multiple of 8. Returns the number of bits added (0..7). ``frombytes(bytes)`` diff --git a/bitarray/_bitarray.c b/bitarray/_bitarray.c index d2c19cb9f..1d3ab86d7 100644 --- a/bitarray/_bitarray.c +++ b/bitarray/_bitarray.c @@ -1267,7 +1267,7 @@ PyDoc_STRVAR(fill_doc, "fill() -> int\n\ \n\ Adds zeros to the end of the bitarray, such that the length of the bitarray\n\ -is not a multiple of 8. Returns the number of bits added (0..7)."); +will be a multiple of 8. Returns the number of bits added (0..7)."); static PyObject *