summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/text/qbytearray.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index 265c1fbf72..2b46bf734d 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -1363,9 +1363,8 @@ QByteArray &QByteArray::operator=(const char *str)
Returns the byte at index position \a i as a modifiable reference.
- If an assignment is made beyond the end of the byte array, the
- array is extended with resize() before the assignment takes
- place.
+ \a i must be a valid index position in the byte array (i.e., 0 <=
+ \a i < size()).
Example:
\snippet code/src_corelib_text_qbytearray.cpp 9