Skip to content

Commit 58a1af2

Browse files
nordlowCyberShadow
authored andcommitted
Annotate std/base64.d to please dlang/dmd#12520 dlang#8076
1 parent 89fd0df commit 58a1af2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

std/base64.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
218218
* The slice of $(D_PARAM buffer) that contains the encoded string.
219219
*/
220220
@trusted
221-
pure char[] encode(R1, R2)(in R1 source, R2 buffer) if (isArray!R1 && is(ElementType!R1 : ubyte) &&
221+
pure char[] encode(R1, R2)(in R1 source, return scope R2 buffer) if (isArray!R1 && is(ElementType!R1 : ubyte) &&
222222
is(R2 == char[]))
223223
in
224224
{
@@ -981,7 +981,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
981981
* base alphabet of the current Base64 encoding scheme.
982982
*/
983983
@trusted
984-
pure ubyte[] decode(R1, R2)(in R1 source, R2 buffer) if (isArray!R1 && is(ElementType!R1 : dchar) &&
984+
pure ubyte[] decode(R1, R2)(in R1 source, return scope R2 buffer) if (isArray!R1 && is(ElementType!R1 : dchar) &&
985985
is(R2 == ubyte[]) && isOutputRange!(R2, ubyte))
986986
in
987987
{

0 commit comments

Comments
 (0)