def line_end
import bend-lint-api@0.2.0.0/shared/strings.bend as Stringsimport Base
46# Where the line of `text` that starts at `beg` ends: after its newline, or at the end of the text.
47def line_end(text: String, +beg: U32) -> U32:
48 line_end.go(String.drop(text, U32.to_nat(beg)), beg)