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>
This commit is contained in:
sheunglaili 2020-11-04 10:31:47 +00:00 committed by commit-bot@chromium.org
parent 97015a0f07
commit 7d64a93199

View file

@ -92,9 +92,9 @@ We can do this by using `elementAt`.
```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.
```