Skip to content

Commit 898ad25

Browse files
author
Leo
committed
Review suggestions
1 parent 18ce69e commit 898ad25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/reference-types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ Data locations are not only relevant for persistency of data, but also for the s
8585
// The following does not work; it would need to create a new temporary /
8686
// unnamed array in storage, but storage is "statically" allocated:
8787
// y = memoryArray;
88-
// On the other hand: "delete y" is not valid, as assignments to local variables
88+
// Similarly, "delete y" is not valid, as assignments to local variables
8989
// referencing storage objects can only be made from existing storage objects.
9090
// It would "reset" the pointer, but there is no sensible location it could point to.
91-
// See "delete" under Operators
91+
// For more details see the documentation of the "delete" operator.
9292
// delete y;
9393
g(x); // calls g, handing over a reference to x
9494
h(x); // calls h and creates an independent, temporary copy in memory

0 commit comments

Comments
 (0)