diff options
author | Keith Isdale <keith.isdale@nokia.com> | 2009-11-09 04:49:45 (GMT) |
---|---|---|
committer | Keith Isdale <keith.isdale@nokia.com> | 2009-11-09 04:49:45 (GMT) |
commit | b8b7f98b01d9ad03fecac7a0f593ac5734d7af1d (patch) | |
tree | 82bbe1c9de842ae8ed2fc1ece759656382da2887 /doc | |
parent | 4ac97bb145c0a4109670f34be0ec0762e30494b1 (diff) | |
download | Qt-b8b7f98b01d9ad03fecac7a0f593ac5734d7af1d.zip Qt-b8b7f98b01d9ad03fecac7a0f593ac5734d7af1d.tar.gz Qt-b8b7f98b01d9ad03fecac7a0f593ac5734d7af1d.tar.bz2 |
Mistake in the example for QByteArray::lastIndexOf()
Correct typing error "azy" -> "az"
Ensure that the example code returns indicated values.
Task-number: QTBUG-5571
Reviewed-by: Peter Yard
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/code/src_corelib_tools_qbytearray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_tools_qbytearray.cpp b/doc/src/snippets/code/src_corelib_tools_qbytearray.cpp index e87408a..52fbd1a 100644 --- a/doc/src/snippets/code/src_corelib_tools_qbytearray.cpp +++ b/doc/src/snippets/code/src_corelib_tools_qbytearray.cpp @@ -234,7 +234,7 @@ ba.indexOf("X"); // returns -1 //! [23] QByteArray x("crazy azimuths"); -QByteArray y("azy"); +QByteArray y("az"); x.lastIndexOf(y); // returns 6 x.lastIndexOf(y, 6); // returns 6 x.lastIndexOf(y, 5); // returns 2 |