Skip to content

Commit 3ce531b

Browse files
authored
Fix errors in example code (#1148)
See #1144 8 Signed-off-by: gregmarr <gregmarr@users.noreply.github.com>
1 parent cced142 commit 3ce531b

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)