소스 검색

Merge pull request #20 from duskmoon314/println

fix: Use \r\n in println instead of \n
Luo Jia 3 년 전
부모
커밋
3bc5993ad7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)+)?));
     }
 }