|
From: | Alex Shinn |
Subject: | Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter |
Date: | Mon, 13 Jan 2014 00:11:43 -0500 |
Mario Domenech Goulart scripsit:
That's correct, but in fact what's happening here is that the
> As as I understand it, (string-trim-right "abc " char-whitespace? 1)
> should trim "bc ", not that it should trim "abc " then substring it
> from 1.
reference version is effectively ignoring the start argument altogether.
The code figures out where the new right end should be and then returns
a substring; unfortunately, the start argument passed to substring is
always 0. The patch changes it to start, which eliminates this bug.
[Prev in Thread] | Current Thread | [Next in Thread] |