mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Denote getData as view
				
					
				
			This commit is contained in:
		
							parent
							
								
									0d4adc44c9
								
							
						
					
					
						commit
						1a603625d4
					
				| @ -196,7 +196,7 @@ In the following example, ``D``, can call ``c.getData()`` to retrieve the value | ||||
| 
 | ||||
|         function f(uint a) private pure returns(uint b) { return a + 1; } | ||||
|         function setData(uint a) public { data = a; } | ||||
|         function getData() public returns(uint) { return data; } | ||||
|         function getData() public view returns(uint) { return data; } | ||||
|         function compute(uint a, uint b) internal pure returns (uint) { return a + b; } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user