lib/strings.concatLines: call concatStringsSep directly (#506077)

This commit is contained in:
Johannes Kirschbauer 2026-04-16 19:32:28 +00:00 committed by GitHub
commit 51f38b40cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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`.