Skip to content

Commit 116c941

Browse files
committed
Merge branch 'main' of https://github.com/hsutter/cppfront
2 parents c584b43 + 3ce531b commit 116c941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cpp2/objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ g: () = {
8888
else {
8989
load_from_disk( out buf ); // constructs buf (*)
9090
}
91-
std::cout buf[0]; // ok, a has been initialized
91+
std::cout << buf[0]; // ok, a has been initialized
9292
}
9393

94-
load_from_disk: (out buffer) = {
94+
load_from_disk: (out x) = {
9595
x = /* data read from disk */ ; // when `buffer` is uninitialized,
9696
} // constructs it; otherwise, assigns
9797
```

0 commit comments

Comments
 (0)