lib/strings.concatLines: call concatStringsSep directly

This commit is contained in:
Eman Resu
2026-04-02 14:01:59 -04:00
parent 3a374016ad
commit d7e6988c9b

View File

@@ -337,7 +337,6 @@ rec {
/**
Concatenate a list of strings, adding a newline at the end of each one.
Defined as `concatMapStrings (s: s + "\n")`.
# Inputs
@@ -361,7 +360,7 @@ rec {
:::
*/
concatLines = concatMapStrings (s: s + "\n");
concatLines = str: concatStringsSep "\n" str + "\n";
/**
Given string `s`, replace every occurrence of the string `from` with the string `to`.