Skip to content

Commit 81c4604

Browse files
committed
Clarify effect of memory unsafe assembly
1 parent 2ddb26a commit 81c4604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/assembly.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ perform additional memory optimizations, if it can rely on certain assumptions a
289289

290290
While we recommend to always respect Solidity's memory model, inline assembly allows you to use memory
291291
in an incompatible way. Therefore, moving stack variables to memory and additional memory optimizations are,
292-
by default, disabled in the presence of any inline assembly block that contains a memory operation or assigns
293-
to Solidity variables in memory.
292+
by default, globally disabled in the presence of any inline assembly block that contains a memory operation
293+
or assigns to Solidity variables in memory.
294294

295295
However, you can specifically annotate an assembly block to indicate that it in fact respects Solidity's memory
296296
model as follows:

0 commit comments

Comments
 (0)