summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-05-03 18:52:24 +0200
committerEugen Wissner <belka@caraus.de>2025-05-03 18:52:24 +0200
commit6072bfab6818eb038d31491c53bde1092cf1b70d (patch)
tree31edaffe1f9039add93541943ffe13f08284e371 /source
parent4acf163b428c9d61054ebe917c4b4c89324a20d4 (diff)
downloadtanya-6072bfab6818eb038d31491c53bde1092cf1b70d.tar.gz
Marke SingletonByRef functions scope
Diffstat (limited to 'source')
-rw-r--r--source/tanya/algorithm/iteration.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tanya/algorithm/iteration.d b/source/tanya/algorithm/iteration.d
index f2019da..5efc676 100644
--- a/source/tanya/algorithm/iteration.d
+++ b/source/tanya/algorithm/iteration.d
@@ -109,7 +109,7 @@ private struct SingletonByRef(E)
this.element = &element;
}
- @property ref inout(E) front() inout return
+ @property ref inout(E) front() inout return scope
in
{
assert(!empty);
@@ -148,7 +148,7 @@ private struct SingletonByRef(E)
return typeof(this)(*this.element);
}
- ref inout(E) opIndex(size_t i) inout return
+ ref inout(E) opIndex(size_t i) inout return scope
in
{
assert(!empty);