Skip to content

Commit d258782

Browse files
authored
fix std.encoding.sanitize usable in @safe.Fix dlang#10545 (dlang#10735)
1 parent d9fd09d commit d258782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/encoding.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ immutable(E)[] sanitize(E)(immutable(E)[] s)
18791879
offset += n;
18801880
t = t[n..$];
18811881
}
1882-
return cast(immutable(E)[])array[0 .. offset];
1882+
return array[0 .. offset];
18831883
}
18841884

18851885
///

0 commit comments

Comments
 (0)