mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
solidity contract name convention CamelCase to CapWords (#2606)
This commit is contained in:
parent
393bab2f6e
commit
9453efb845
@ -45,7 +45,7 @@ features are typically marked, and subject to change. Pull requests welcome.
|
|||||||
|
|
||||||
/* 'contract' has similarities to 'class' in other languages (class variables,
|
/* 'contract' has similarities to 'class' in other languages (class variables,
|
||||||
inheritance, etc.) */
|
inheritance, etc.) */
|
||||||
contract SimpleBank { // CamelCase
|
contract SimpleBank { // CapWords
|
||||||
// Declare state variables outside function, persist through life of contract
|
// Declare state variables outside function, persist through life of contract
|
||||||
|
|
||||||
// dictionary that maps addresses to balances
|
// dictionary that maps addresses to balances
|
||||||
|
Loading…
Reference in New Issue
Block a user