Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 695ac5e

Browse files
nordlowdlang-bot
authored andcommitted
Merge two calls to rangeMsgPut
1 parent 7456d96 commit 695ac5e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/exception.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ class ArrayIndexError : RangeError
106106
char[] sink = buf[];
107107
sink.rangeMsgPut("index [");
108108
sink.rangeMsgPut(unsignedToTempString!10(index, tmpBuf));
109-
sink.rangeMsgPut("]");
110-
sink.rangeMsgPut(" is out of bounds for array of length ");
109+
sink.rangeMsgPut("] is out of bounds for array of length ");
111110
sink.rangeMsgPut(unsignedToTempString!10(length, tmpBuf));
112111
this.msgBuf = buf;
113112
super(msgBuf[0..$-sink.length], file, line, next);

0 commit comments

Comments
 (0)