From f25df3b370ce5f4a4817391b470731cdd312d469 Mon Sep 17 00:00:00 2001 From: Jojo-1000 <33495614+Jojo-1000@users.noreply.github.com> Date: Thu, 11 Mar 2021 22:38:15 +0100 Subject: [PATCH] Update readme examples to match changed return types. --- README.md | 2 +- doc/markdown/Mainpage.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d908c1..7d0baf5 100755 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); 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, you can get a vector containing them by calling getAll(). If no lights are found the vector will be empty. ```C++ -std::vector> lights = bridge.lights().getAll(); +std::vector lights = bridge.lights().getAll(); ``` If you now want to control a light, call a specific function of it. ```C++ diff --git a/doc/markdown/Mainpage.md b/doc/markdown/Mainpage.md index dd2cdb7..5af8285 100644 --- a/doc/markdown/Mainpage.md +++ b/doc/markdown/Mainpage.md @@ -66,7 +66,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); 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, 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. ```{.cpp} -std::vector> lights = bridge.lights().getAll(); +std::vector lights = bridge.lights().getAll(); ``` If you now want to control a light, call a specific function of it. ```{.cpp} -- libgit2 0.21.4