Skip to content

Commit 991b07e

Browse files
committed
Fix typo
1 parent c9b46fd commit 991b07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/initialization/scoped_waiter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A useful abstraction to have is an object that in its destructor waits/blocks until the Device is idle. It is incorrect usage to destroy Vulkan objects while they are in use by the GPU, such an object helps with making sure the device is idle before some dependent resource gets destroyed.
44

5-
Being able to do arbitary things on scope exit will be useful in other spots too, so we encapsulate that in a basic class template `Scoped`. It's somewhat like a `unique_ptr<Type, Deleter>` that stores the value (`Type`) instead of a pointer (`Type*`), with some constraints:
5+
Being able to do arbitrary things on scope exit will be useful in other spots too, so we encapsulate that in a basic class template `Scoped`. It's somewhat like a `unique_ptr<Type, Deleter>` that stores the value (`Type`) instead of a pointer (`Type*`), with some constraints:
66

77
1. `Type` must be default constructible
88
1. Assumes a default constructed `Type` is equivalent to null (does not call `Deleter`)

0 commit comments

Comments
 (0)