Skip to content

Commit

Permalink
make stride trusted
Browse files Browse the repository at this point in the history
- no bounds check in release mode
  • Loading branch information
MartinNowak committed Jul 11, 2012
1 parent 6baf866 commit 5b7033a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/utf.d
Expand Up @@ -150,7 +150,7 @@ unittest
$(D UTFException) if $(D str[index]) is not the start of a valid UTF-8
sequence.
+/
uint stride(S)(auto ref const S str, size_t index) @safe pure
uint stride(S)(auto ref const S str, size_t index) @trusted pure
if (is(S : const(char[])))
{
immutable c = str[index];
Expand Down

0 comments on commit 5b7033a

Please sign in to comment.