Skip to content

Commit 26cb281

Browse files
authored
Fix typo and update comment on why std::cout not working now. (#6095)
1 parent 50a0f90 commit 26cb281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/interop/cpp/hello_world.carbon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import Cpp inline "#include <cstdio>";
66

77
fn Run() {
8-
// TODO: Requires operator <<, declaration type Var (cout) and class with
9-
// virtual bases (basic_ostream).
8+
// TODO: Requires member operator << and class with virtual bases
9+
// (basic_ostream).
1010
// Cpp.std.cout << "Hello world!\n";
1111

1212
// TODO: Requires variadic function.
@@ -20,7 +20,7 @@ fn Run() {
2020

2121
// TODO: Requires Core.String API.
2222
// let message: str = "Hello world!\n\n";
23-
// for (c: Core.Char in msg) {
23+
// for (c: Core.Char in message) {
2424
// Cpp.putchar((c as u8) as i32);
2525
// }
2626

0 commit comments

Comments
 (0)