mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 16:10:45 +03:00
startsWith should be @safe
This commit is contained in:
parent
1c418ae8ee
commit
fb5f80faac
1 changed files with 2 additions and 2 deletions
|
@ -6612,7 +6612,7 @@ if (isInputRange!R &&
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
assert(startsWith("abc", ""));
|
assert(startsWith("abc", ""));
|
||||||
assert(startsWith("abc", "a"));
|
assert(startsWith("abc", "a"));
|
||||||
|
@ -6627,7 +6627,7 @@ unittest
|
||||||
assert(startsWith("abc", "x", "aaa", "a", "sab") == 3);
|
assert(startsWith("abc", "x", "aaa", "a", "sab") == 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
import std.conv : to;
|
import std.conv : to;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue