1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-14 10:45:06 +02:00

Fix small syntax bug

This commit is contained in:
FeepingCreature
2013-09-08 13:15:38 +02:00
parent ff6cf18364
commit ff24568b09

View File

@@ -223,7 +223,7 @@ void main(string[] args) {
void writeS() { writeln "$s"; } void writeS() { writeln "$s"; }
} }
C cc = new C; 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. cc.a = 5; // Always used for property access.
auto ccp = &cc; auto ccp = &cc;
(*ccp).a = 6; (*ccp).a = 6;