diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2014-06-21 15:15:48 +0100 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2014-06-21 15:15:48 +0100 |
commit | eadb5f7c7996926f048b98f5bba96f9fb8bd7b19 (patch) | |
tree | 9511b11eaf188f543287aaf6fc010be68c037ab7 /README.md | |
parent | 501728b9830eaef94052a3161e58d70ad3a8aeb2 (diff) | |
download | google-fruit-eadb5f7c7996926f048b98f5bba96f9fb8bd7b19.tar.gz |
Add a few comments to the hello world example.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |