Browse Source

Merge pull request #20 from duskmoon314/println

fix: Use \r\n in println instead of \n
Luo Jia 3 years ago
parent
commit
3bc5993ad7
1 changed files with 1 additions and 1 deletions
  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)+)?));
     }
 }