Procházet zdrojové kódy

fix: Use \r\n in println instead of \n

Campbell He před 3 roky
rodič
revize
c66eb2eb71
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/legacy_stdio.rs

+ 1 - 1
src/legacy_stdio.rs

@@ -138,6 +138,6 @@ macro_rules! print {
 #[macro_export(local_inner_macros)]
 macro_rules! println {
     ($fmt: literal $(, $($arg: tt)+)?) => {
-        $crate::legacy_stdio::_print(core::format_args!(core::concat!($fmt, "\n") $(, $($arg)+)?));
+        $crate::legacy_stdio::_print(core::format_args!(core::concat!($fmt, "\r\n") $(, $($arg)+)?));
     }
 }