From 5234408ff507519e4e6d5e9eef8f76bd9b322b64 Mon Sep 17 00:00:00 2001 From: bernard peh Date: Sat, 16 Sep 2017 23:13:50 +1000 Subject: possible typo fix --- docs/frequently-asked-questions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index f59d86e7..5df5313c 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -305,7 +305,7 @@ of variable it concerns: * state variables are always in storage * function arguments are always in memory -* local variables always reference storage +* local variables are always in stack Example:: -- cgit v1.2.3 From 5ffd119990b300fb4fa3c0cf693c07ed67bb0aa1 Mon Sep 17 00:00:00 2001 From: bernard peh Date: Mon, 25 Sep 2017 19:29:10 +1000 Subject: minor tuning to sentence to be more accurate --- docs/frequently-asked-questions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 5df5313c..387f16fe 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -305,7 +305,7 @@ of variable it concerns: * state variables are always in storage * function arguments are always in memory -* local variables are always in stack +* local variables are always in the stack but reference storage Example:: -- cgit v1.2.3 From d45629d909b8809273c5dcd09fb9ff81299d81d0 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 25 Sep 2017 12:01:09 +0200 Subject: Update frequently-asked-questions.rst --- docs/frequently-asked-questions.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 387f16fe..93dcfbb8 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -304,8 +304,9 @@ There are defaults for the storage location depending on which type of variable it concerns: * state variables are always in storage -* function arguments are always in memory -* local variables are always in the stack but reference storage +* function arguments are in memory by default +* local variables of struct, array or mapping type reference storage by default +* local variables of value type (i.e. neither array, nor struct nor mapping) are stored in the stack Example:: -- cgit v1.2.3