Skip to content

Commit 65e86d0

Browse files
Update docs/standard-library/in-place-t-struct.md
Co-authored-by: Casey Carter <cartec69@gmail.com>
1 parent 72255c7 commit 65e86d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/standard-library/in-place-t-struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct MyStruct
7676
int main()
7777
{
7878
// Construct a MyStruct directly inside opt
79-
std::optional<MyStruct> opt(std::in_place, MyStruct(42));
79+
std::optional<MyStruct> opt(std::in_place, 42);
8080

8181
// Construct a MyStruct object inside an any object
8282
std::any a(std::in_place_type<MyStruct>, MyStruct(314));

0 commit comments

Comments
 (0)