Skip to main content

write_line

Function write_line 

Source
pub fn write_line(content: &str) -> Result<()>
Expand description

Writes a line to stdout with pure LF (never CRLF), then flushes.

Uses write_all + explicit flush (rules: never rely on Drop alone). BrokenPipe is propagated so callers / main can exit 141.

ยงErrors

Returns an error if stdout I/O fails (including BrokenPipe).