Ver Fonte

Merge pull request #20 from duskmoon314/println

fix: Use \r\n in println instead of \n
Luo Jia há 3 anos atrás
pai
commit
3bc5993ad7
1 ficheiros alterados com 1 adições e 1 exclusões
  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)+)?));
     }
 }