hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit a0ec9f13fd6aebe8d5ac936431aabc5b49d9333e
parent cce8406cf5b73b6098f81a8d55cb9ab3437e71ab
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 24 Feb 2022 20:45:55 -0500

strings: clarify `join` ownership behavior

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mstrings/concat.ha | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/strings/concat.ha b/strings/concat.ha @@ -36,7 +36,8 @@ export fn concat(strs: str...) str = { free(s); }; -// Joins several strings together by placing a delimiter between them. +// Joins several strings together by placing a delimiter between them. The +// caller must free the return value. export fn join(delim: str, strs: str...) str = { let z = 0z; for (let i = 0z; i < len(strs); i += 1) {