Skip to content

Commit 4df16a2

Browse files
committed
Switch toString sink overload back to 'in' parameter
Now that the bug has been fixed for a few release (v2.096.1), we can revert to using 'in', especially as it only affect users of '-preview=in', which are bleeding edge users.
1 parent 3515143 commit 4df16a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/geod24/bitblob.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ public struct BitBlob (size_t Size)
8282
8383
***************************************************************************/
8484

85-
public void toString (scope void delegate(const(char)[]) @safe sink) const
85+
public void toString (scope void delegate(in char[]) @safe sink) const
8686
{
8787
FormatSpec!char spec;
8888
this.toString(sink, spec);
8989
}
9090

9191
/// Ditto
92-
public void toString (scope void delegate(const(char)[]) @safe sink,
92+
public void toString (scope void delegate(in char[]) @safe sink,
9393
scope const ref FormatSpec!char spec) const
9494
{
9595
/// Used for formatting
@@ -136,7 +136,7 @@ public struct BitBlob (size_t Size)
136136
{
137137
size_t idx;
138138
char[StringBufferSize] buffer = void;
139-
scope sink = (const(char)[] v) {
139+
scope sink = (in char[] v) {
140140
buffer[idx .. idx + v.length] = v;
141141
idx += v.length;
142142
};

0 commit comments

Comments
 (0)