Skip to content

Commit e6c10a8

Browse files
authored
Fix errors in example code
See hsutter#1144 8 Signed-off-by: gregmarr <[email protected]>
1 parent a76e23b commit e6c10a8

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)