commit | 7d64a93199fcfd2be5ac53f5152377c775231102 | [log] [tgz] |
---|---|---|
author | sheunglaili <31618202+sheunglaili@users.noreply.github.com> | Wed Nov 04 10:31:47 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Nov 04 10:31:47 2020 +0000 |
tree | 4def7473a82e2fb92fb916107f826d42bcb9d093 | |
parent | 97015a0f07f8e80decba2c9cee1577e12186380e [diff] |
API doc issue: Update sqlite-tutorial CString section with correct ascii code Closes https://github.com/dart-lang/sdk/pull/44042 https://github.com/dart-lang/sdk/pull/44042 GitOrigin-RevId: 2783fe93da270636d5453e03c6cd2c15b8e3c4cd Change-Id: I663e840cee0d73002c401541bace0bd4016d8e36 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170161 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
diff --git a/samples/ffi/sqlite/docs/sqlite-tutorial.md b/samples/ffi/sqlite/docs/sqlite-tutorial.md index 9b8e7e1..c7ea858 100644 --- a/samples/ffi/sqlite/docs/sqlite-tutorial.md +++ b/samples/ffi/sqlite/docs/sqlite-tutorial.md
@@ -92,9 +92,9 @@ ```dart CString string = allocate(count: 4).cast(); // Allocates 4 bytes and casts it to a string. -string.value = 73; // Stores 'F' at index 0. -string[1] = 73; // Stores 'F' at index 1. -string[2] = 70; // Stores 'I' at index 2. +string.value = 70; // Stores 'F' at index 0. +string[1] = 70; // Stores 'F' at index 1. +string[2] = 73; // Stores 'I' at index 2. string[3] = 0; // Null terminates the string. ```