From fdf975364b15e7db3902025c6425f17cbf71467d Mon Sep 17 00:00:00 2001 From: mirefly42 <143206683+mirefly42@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:21:49 +0000 Subject: [PATCH] Fix typo in vk_raii_ProgrammingGuide.md (#1780) --- vk_raii_ProgrammingGuide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vk_raii_ProgrammingGuide.md b/vk_raii_ProgrammingGuide.md index a99d1e4..4cabb68 100644 --- a/vk_raii_ProgrammingGuide.md +++ b/vk_raii_ProgrammingGuide.md @@ -30,10 +30,10 @@ Alternatively, you can use a creation function to create a `vk::raii::Device`: // create a vk::raii::Device, given a vk::raii::PhysicalDevice physicalDevice and a vk::DeviceCreateInfo deviceCreateInfo vk::raii::Device device = physicalDevice.createDevice( deviceCreateInfo ); -Finally, if you have defined `VULKAN_HPP_NO_EXCPETIONS` and compile for at least C++23, the constructors as described above are not available (they would potentially throw an exception which is not allowed then) but you have to use the construction functions. Those functions then do not return the created object, but a `std::expected`: +Finally, if you have defined `VULKAN_HPP_NO_EXCEPTIONS` and compile for at least C++23, the constructors as described above are not available (they would potentially throw an exception which is not allowed then) but you have to use the construction functions. Those functions then do not return the created object, but a `std::expected`: // create a vk::raii::Device, given a vk::raii::PhysicalDevice physicalDevice and a vk::DeviceCreateInfo deviceCreateInfo - // when VULKAN_HPP_NO_EXCPETIONS is defined and your using at least C++23 + // when VULKAN_HPP_NO_EXCEPTIONS is defined and your using at least C++23 auto deviceExpected = physicalDevice.createDevice( deviceCreateInfo ); if ( deviceExpected.has_value() ) {