Skip to content

Commit e9411a0

Browse files
authored
Fixed code snippet in Update 00_Base_code.adoc
There was an example Update 00_Base_code.adoc that wouldn't compile.
1 parent b65ff32 commit e9411a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ can be directly replaced by this:
140140
vk::raii::Context context;
141141
constexpr auto appInfo = vk::ApplicationInfo("Hello Triangle", 1, "No Engine", 1, vk::ApiVersion11);
142142
vk::InstanceCreateInfo createInfo({}, &appInfo, {}, {});
143-
vk::raii::instance = std::make_unique<vk::raii::Instance>(context, createInfo);
143+
std::unique_ptr<vk::raii::Instance> instance = std::make_unique<vk::raii::Instance>(context, createInfo);
144144
----
145145

146146
As this can be a little hard to read when we look at the structures. We have

0 commit comments

Comments
 (0)