From 898ad25aaba84ee4986ab5f3e0001a71aaec796d Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 13 Aug 2022 13:44:03 +0200 Subject: [PATCH] Review suggestions --- docs/types/reference-types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/types/reference-types.rst b/docs/types/reference-types.rst index c2b293ba1..a6b5728c9 100644 --- a/docs/types/reference-types.rst +++ b/docs/types/reference-types.rst @@ -85,10 +85,10 @@ Data locations are not only relevant for persistency of data, but also for the s // The following does not work; it would need to create a new temporary / // unnamed array in storage, but storage is "statically" allocated: // y = memoryArray; - // On the other hand: "delete y" is not valid, as assignments to local variables + // Similarly, "delete y" is not valid, as assignments to local variables // referencing storage objects can only be made from existing storage objects. // It would "reset" the pointer, but there is no sensible location it could point to. - // See "delete" under Operators + // For more details see the documentation of the "delete" operator. // delete y; g(x); // calls g, handing over a reference to x h(x); // calls h and creates an independent, temporary copy in memory