From 51a150e82ae04c7470ad1aa8fdc07f45baf79b59 Mon Sep 17 00:00:00 2001 From: Will White Date: Thu, 2 Feb 2017 15:19:27 +0000 Subject: [PATCH] Other contracts can't write to a public variable The removed words implied that other contracts can write to a public variable. --- docs/introduction-to-smart-contracts.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 4c134abcf..524cbcb0e 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -109,8 +109,7 @@ that does not allow any arithmetic operations. It is suitable for storing addresses of contracts or keypairs belonging to external persons. The keyword ``public`` automatically generates a function that allows you to access the current value of the state variable. -Without this keyword, other contracts have no way to access the variable -and only the code of this contract can write to it. +Without this keyword, other contracts have no way to access the variable. The function will look something like this:: function minter() returns (address) { return minter; }