diff options
author | Alexander Böhn <fish2000@users.noreply.github.com> | 2019-01-25 23:56:45 -0500 |
---|---|---|
committer | Jeff McGlynn <jeff@jeffmcglynn.com> | 2019-01-26 09:49:30 -0800 |
commit | 6eed60043b7b93407982d9fd3f1822aaf46afc17 (patch) | |
tree | 9b06b171872b63830288e3da53a67d20cfdb2538 | |
parent | 9b150919fd518f0755d6624ddc36163467ced431 (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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); ``` |