Sfoglia il codice sorgente

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

Campbell He 3 anni fa
parent
commit
c66eb2eb71
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)+)?));
     }
 }