Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure
[oota-llvm.git] / docs / tutorial / LangImpl4.rst
index 702886f6aec6b432f4b51795339307634e99cb4a..92dcc3d33a0ed89fdfa82d0d783f6f8f5184dcda 100644 (file)
@@ -566,7 +566,7 @@ if we add:
 
     /// putchard - putchar that takes a double and returns 0.
     extern "C" double putchard(double X) {
-      putchar((char)X);
+      fputc((char)X, stderr);
       return 0;
     }