aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Böhn <fish2000@users.noreply.github.com>2019-01-25 23:56:45 -0500
committerGravatar Jeff McGlynn <jeff@jeffmcglynn.com>2019-01-26 09:49:30 -0800
commit6eed60043b7b93407982d9fd3f1822aaf46afc17 (patch)
tree9b06b171872b63830288e3da53a67d20cfdb2538
parent9b150919fd518f0755d6624ddc36163467ced431 (diff)
Fixed repeated variable name in README.md’s sample
… Both the output `std::vector<uint8_t>` and the success/fail `bool` were named `result` – which that wouldn’t work. How about `bool success`?
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 55daaa6..398de14 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ const size_t height = 480;
std::vector<uint8_t> result;
result.resize(width * height * 4);
-bool result = astc_codec::ASTCDecompressToRGBA(
+bool success = astc_codec::ASTCDecompressToRGBA(
astc.data(), astc.size(), width, height, astc_codec::FootprintType::k4x4,
result.data(), result.size(), /* stride */ width * 4);
```