Closed
Description
As I was using writeln! to fill an in-memory buffer for data that explicitly wants a specific type of newlines (LF, fortunately), and I was wondering whether writeln! would always use LF, or would use the type of newline relevant to the platform (essentially, LF on Unix, CR/LF on Windows), and couldn't find the answer in https://doc.rust-lang.org/std/macro.writeln!.html.
(I got my answer on IRC, it's always LF)
There may be other places where such information is relevant (println! comes to mind).
Cc: @steveklabnik
Metadata
Metadata
Assignees
Labels
No labels