MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / first_line

Function first_line

atomic-cli/src/commands/triage/output.rs:158–160  ·  view source on GitHub ↗

The first line of a possibly multi-line string, for bounded output.

(s: &str)

Source from the content-addressed store, hash-verified

156
157/// The first line of a possibly multi-line string, for bounded output.
158fn first_line(s: &str) -> &str {
159 s.lines().next().unwrap_or(s)
160}
161
162// ── Attested export skin ────────────────────────────────────────────────────
163

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
linesMethod · 0.45

Tested by

no test coverage detected