You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Except for writeln! and println!, I don't see any places... You can already add it to these docs and if another function/macro needs it, then we'll add it.
Activity
GuillaumeGomez commentedon Jul 7, 2016
@glandium: Sure, want to add it? :)
glandium commentedon Jul 8, 2016
I would, if I knew whether there are other places that would benefit from this information as well.
GuillaumeGomez commentedon Jul 8, 2016
Except for
writeln!
andprintln!
, I don't see any places... You can already add it to these docs and if another function/macro needs it, then we'll add it.doc: Mention that writeln! and println! always use LF