Skip to content

Commit

Permalink
sokol_fetch.h: more doc typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 6, 2019
1 parent 55bfc1f commit 2c5ac0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sokol_fetch.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
void response_callback(const sfetch_response_t* response) {
if (response->fetched) {
// data has been loaded, and is available via
// .buffer_ptr and .fetched_size:
// 'buffer_ptr' and 'fetched_size':
const void* data = response->buffer_ptr;
uint64_t num_bytes = response->fetched_size;
}
if (response.finished) {
// the .finished-flag is the catch-all flag for when the request
if (response->finished) {
// the 'finished'-flag is the catch-all flag for when the request
// is finished, no matter if loading was successful of failed,
// so any cleanup-work should happen here...
...
if (response.failed) {
// .failed is true in (addition to .finished) if something
if (response->failed) {
// 'failed' is true in (addition to 'finished') if something
// went wrong (file doesn't exist, or less bytes could be
// read from the file than expected)
}
Expand Down

0 comments on commit 2c5ac0a

Please sign in to comment.