Commit f25df3b370ce5f4a4817391b470731cdd312d469

Authored by Jojo-1000
Committed by Moritz Wirger
1 parent 8d45d342

Update readme examples to match changed return types.

README.md
... ... @@ -70,7 +70,7 @@ hueplusplus::Light light1 = bridge.lights().get(1);
70 70 If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge,
71 71 you can get a vector containing them by calling getAll(). If no lights are found the vector will be empty.
72 72 ```C++
73   -std::vector<std::reference_wrapper<hueplusplus::Light>> lights = bridge.lights().getAll();
  73 +std::vector<hueplusplus::Light> lights = bridge.lights().getAll();
74 74 ```
75 75 If you now want to control a light, call a specific function of it.
76 76 ```C++
... ...
doc/markdown/Mainpage.md
... ... @@ -66,7 +66,7 @@ hueplusplus::Light light1 = bridge.lights().get(1);
66 66 If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge,
67 67 you can get a vector containing them by calling [getAll()](@ref hueplusplus::ResourceList::getAll) on your bridge object. If no lights are found the vector will be empty.
68 68 ```{.cpp}
69   -std::vector<std::reference_wrapper<hueplusplus::Light>> lights = bridge.lights().getAll();
  69 +std::vector<hueplusplus::Light> lights = bridge.lights().getAll();
70 70 ```
71 71 If you now want to control a light, call a specific function of it.
72 72 ```{.cpp}
... ...