Просмотр исходного кода

Fix typo and update comment on why `std::cout` not working now. (#6095)

Boaz Brickner 7 месяцев назад
Родитель
Сommit
26cb28196d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      examples/interop/cpp/hello_world.carbon

+ 3 - 3
examples/interop/cpp/hello_world.carbon

@@ -5,8 +5,8 @@
 import Cpp inline "#include <cstdio>";
 
 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);
   // }