From 6eed60043b7b93407982d9fd3f1822aaf46afc17 Mon Sep 17 00:00:00 2001 From: Alexander Böhn Date: Fri, 25 Jan 2019 23:56:45 -0500 Subject: Fixed repeated variable name in README.md’s sample MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … Both the output `std::vector` and the success/fail `bool` were named `result` – which that wouldn’t work. How about `bool success`? --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); ``` -- cgit v1.2.3