From af25bbbed4997379bfca3970077d3a94e4f1b99e Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Tue, 11 Feb 2025 05:13:10 +0100 Subject: [PATCH] Add unittest to documentation --- core.d | 1 + 1 file changed, 1 insertion(+) diff --git a/core.d b/core.d index f7fe75f..2523a49 100644 --- a/core.d +++ b/core.d @@ -284,6 +284,7 @@ bool isSliceOf(T1, T2)(scope const(T1)[] needle, scope const(T2)[] haystack) @tr ); } +/// @safe unittest { string s0 = "01234"; const(char)[] s1 = s0[1 .. $];