mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Fix small syntax bug
This commit is contained in:
parent
ff6cf18364
commit
ff24568b09
@ -223,7 +223,7 @@ void main(string[] args) {
|
||||
void writeS() { writeln "$s"; }
|
||||
}
|
||||
C cc = new C;
|
||||
// c is a *reference* to C. Classes are always references.
|
||||
// cc is a *reference* to C. Classes are always references.
|
||||
cc.a = 5; // Always used for property access.
|
||||
auto ccp = &cc;
|
||||
(*ccp).a = 6;
|
||||
|
Loading…
Reference in New Issue
Block a user