From e1531c432add6f1d9f263114cda325d8d7bce0ff Mon Sep 17 00:00:00 2001 From: Jinesi Yelizati Date: Tue, 7 Jun 2022 17:05:52 +0800 Subject: [PATCH] docs(readme): fix code snippet in error handling example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0283bf7..6938162 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ if (shaderResult1.result != VK_SUCCESS) vk::Result result; vk::ShaderModule shaderModule2; std::tie(result, shaderModule2) = device.createShaderModule({...} /* createInfo temporary */); -if (shaderResult2.result != VK_SUCCESS) +if (result != VK_SUCCESS) { handle error code; cleanup?