mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Add double-quotes to style guide
This commit is contained in:
		
							parent
							
								
									f2389b3314
								
							
						
					
					
						commit
						2a492f59c9
					
				| @ -118,7 +118,7 @@ Source File Encoding | ||||
| UTF-8 or ASCII encoding is preferred. | ||||
| 
 | ||||
| Imports | ||||
| ========== | ||||
| ======= | ||||
| 
 | ||||
| Import statements should always be placed at the top of the file. | ||||
| 
 | ||||
| @ -519,6 +519,18 @@ No:: | ||||
| Other Recommendations | ||||
| ===================== | ||||
| 
 | ||||
| * Strings should be quoted with double-quotes instead of single-quotes. | ||||
| 
 | ||||
| Yes:: | ||||
| 
 | ||||
|     str = "foo"; | ||||
|     str = "Hamlet says, 'To be or not to be...'"; | ||||
| 
 | ||||
| No:: | ||||
| 
 | ||||
|     str = 'bar'; | ||||
|     str = '"Be yourself; everyone else is already taken." -Oscar Wilde'; | ||||
| 
 | ||||
| * Surround operators with a single space on either side. | ||||
| 
 | ||||
| Yes:: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user