commit 61160050fadad9d91138ac3322d6c9d62ea54cd0 parent 5c88e98b24e58012c8f7baca7afd3f89a99881fe Author: Dominik Schmidt <das1993@hotmail.com> Date: Sun, 9 Aug 2015 22:43:45 +0200 Fortunes-aggregate: Handle length correctly Diffstat:
dfortune.d | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dfortune.d b/dfortune.d @@ -240,7 +240,7 @@ struct Fortunes{ void add(Fortune f){ fortunes~=f; - end+=f.length; + end+=f.length-1; } alias chooseRandom=Fortune.chooseRandom; auto @property strings(){