- improve compatibility with io library (also accept bytearray for write)
- update test for Serial+io
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index 6b913a5..08f1b45 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -104,8 +104,8 @@
         Write the string *data* to the port.
 
         .. versionchanged:: 2.5
-            Accepts an instance of :class:`bytes` when available (Python 2.6
-            and newer) and :class:`str` otherwiese.
+            Accepts instances of :class:`bytes` and :class:`bytearray` when
+            available (Python 2.6 and newer) and :class:`str` otherwiese.
 
     .. method:: inWaiting()