diff options
| author | Jędrzej Nowacki <[email protected]> | 2013-09-10 10:50:44 +0200 |
|---|---|---|
| committer | The Qt Project <[email protected]> | 2013-09-10 13:26:59 +0200 |
| commit | 6d1f8575a3b034583a25c12d29d8897f6c6ebe1a (patch) | |
| tree | 28174733c1ff69ed0f68b973e87b5a37f1da9fc6 /src | |
| parent | 82e94c78906ec25767a5d8eb1a61af5dd17d529f (diff) | |
Fix a typo in documentation
Task-number: QTBUG-33408
Change-Id: I84729139ff40ac62b29031eb161761a8205259cc
Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp b/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp index 4f8c4c095e8..c2a375f4988 100644 --- a/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp @@ -427,7 +427,7 @@ ba2.constData(); // Returns "ca\0" with terminating \0. QByteArray ba3("ca\0r\0t", 4); ba3.size(); // Returns 4. -ba2.constData(); // Returns "ca\0r" with terminating \0. +ba3.constData(); // Returns "ca\0r" with terminating \0. const char cart[] = {'c', 'a', '\0', 'r', '\0', 't'}; QByteArray ba4(QByteArray::fromRawData(cart, 6)); |
