From cd9fd4edb8d79d1520cda57b1041fe238e649de1 Mon Sep 17 00:00:00 2001 From: vladchicos Date: Mon, 2 Aug 2021 19:22:47 +0300 Subject: [PATCH] the description of what byUTF returns is more clear --- std/utf.d | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/std/utf.d b/std/utf.d index 5af357102..7e8f6ae9a 100644 --- a/std/utf.d +++ b/std/utf.d @@ -4278,9 +4278,10 @@ private int impureVariable; * Does not use GC if `useReplacementDchar` is set to `UseReplacementDchar.no` * * Returns: - * A bidirectional range if `R` is a range and not auto-decodable, as defined by - * $(REF isAutodecodableString, std, traits), and if the base range is - * also a bidirectional range. + * A bidirectional range if `R` is a bidirectional range and not auto-decodable, + * as defined by $(REF isAutodecodableString, std, traits). + * + * A forward range if `R` is a forward range and not auto-decodable. * * Or, if `R` is a range and it is auto-decodable and * `is(ElementEncodingType!typeof(r) == C)`, then the range is passed