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

Function first_line

atomic-cli/src/commands/triage/output.rs:268–270  ·  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

266
267/// The first line of a possibly multi-line string, for bounded output.
268fn first_line(s: &str) -> &str {
269 s.lines().next().unwrap_or(s)
270}
271
272// ── Attested export skin ────────────────────────────────────────────────────
273

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
linesMethod · 0.45

Tested by

no test coverage detected