Add unittest to documentation

This commit is contained in:
Elias Batek 2025-02-11 05:13:10 +01:00
parent 7e03da94e8
commit af25bbbed4
1 changed files with 1 additions and 0 deletions

1
core.d
View File

@ -284,6 +284,7 @@ bool isSliceOf(T1, T2)(scope const(T1)[] needle, scope const(T2)[] haystack) @tr
); );
} }
///
@safe unittest { @safe unittest {
string s0 = "01234"; string s0 = "01234";
const(char)[] s1 = s0[1 .. $]; const(char)[] s1 = s0[1 .. $];