aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2014-06-21 15:15:48 +0100
committerMarco Poletti <poletti.marco@gmail.com>2014-06-21 15:15:48 +0100
commiteadb5f7c7996926f048b98f5bba96f9fb8bd7b19 (patch)
tree9511b11eaf188f543287aaf6fc010be68c037ab7 /README.md
parent501728b9830eaef94052a3161e58d70ad3a8aeb2 (diff)
downloadgoogle-fruit-eadb5f7c7996926f048b98f5bba96f9fb8bd7b19.tar.gz
Add a few comments to the hello world example.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3725a39..78245ac 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,8 @@ public:
class StdoutWriter : public Writer {
public:
+ // Like "StdoutWriter() = default;" but also marks this constructor as the
+ // one to use for injection.
INJECT(StdoutWriter()) = default;
virtual ~StdoutWriter() = default;
@@ -83,6 +85,8 @@ private:
Writer* writer;
public:
+ // Like "GreeterImpl(Writer* writer) {...}" but also marks this constructor
+ // as the one to use for injection.
INJECT(GreeterImpl(Writer* writer))
: writer(writer) {
}
@@ -110,6 +114,8 @@ int main() {
}
```
+More documentation is coming soon, stay tuned.
+
### Example code
For examples on how code looks like when using Fruit, look at the examples/ directory in the source tree.