I use Rust 1.9 on Windows 10. When playing with some code and comparing the result obtained from the standard output, I noticed that the output uses the Linux line ending with 0x0A (10, LF) and not the window 0x0D 0x0A (13 10, CR LF ) I tried the following:
println!("{} or {} = {}", a, b, a | b);
print!("{} or {} = {}\n", a, b, a | b);
Is there a way to do Windows line endings?
source
share