From 26cb28196dcc946ce7f1dc207e490f881dc27a6e Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Thu, 18 Sep 2025 15:06:38 +0200 Subject: [PATCH] Fix typo and update comment on why `std::cout` not working now. (#6095) --- examples/interop/cpp/hello_world.carbon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/interop/cpp/hello_world.carbon b/examples/interop/cpp/hello_world.carbon index 619edf1299a0..5a841fd92dfa 100644 --- a/examples/interop/cpp/hello_world.carbon +++ b/examples/interop/cpp/hello_world.carbon @@ -5,8 +5,8 @@ import Cpp inline "#include "; fn Run() { - // TODO: Requires operator <<, declaration type Var (cout) and class with - // virtual bases (basic_ostream). + // TODO: Requires member operator << and class with virtual bases + // (basic_ostream). // Cpp.std.cout << "Hello world!\n"; // TODO: Requires variadic function. @@ -20,7 +20,7 @@ fn Run() { // TODO: Requires Core.String API. // let message: str = "Hello world!\n\n"; - // for (c: Core.Char in msg) { + // for (c: Core.Char in message) { // Cpp.putchar((c as u8) as i32); // }