Skip to content

Commit 94fd40f

Browse files
author
Leo
authored
Merge pull request #13443 from frangio/fix-13416
Clarify effect of memory unsafe assembly
2 parents 2ddb26a + 81c4604 commit 94fd40f

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)