From 908715dbc0ff4c6063349e5ff735a24ed19cd256 Mon Sep 17 00:00:00 2001 From: JinShil Date: Sun, 1 Sep 2019 11:52:19 +0900 Subject: [PATCH] Replace `in` with `scope const` for `Throwable.toString` --- src/object.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.d b/src/object.d index 464984be28..f71f9967aa 100644 --- a/src/object.d +++ b/src/object.d @@ -1897,7 +1897,7 @@ class Throwable : Object override string toString() { string s; - toString((buf) { s ~= buf; }); + toString((scope const buf) { s ~= buf; }); return s; } @@ -1907,7 +1907,7 @@ class Throwable : Object * performed in certain error situations. Override this $(D * toString) method to customize the error message. */ - void toString(scope void delegate(in char[]) sink) const + void toString(scope void delegate(scope const char[]) sink) const { import core.internal.string : unsignedToTempString;