diff options
Diffstat (limited to 'cpp/examples')
-rw-r--r-- | cpp/examples/messaging/map_sender.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/map_sender.cpp b/cpp/examples/messaging/map_sender.cpp index eeea9a53b4..489ddb7761 100644 --- a/cpp/examples/messaging/map_sender.cpp +++ b/cpp/examples/messaging/map_sender.cpp @@ -47,7 +47,7 @@ int main(int argc, char** argv) { Variant::Map content; content["id"] = 987654321; content["name"] = "Widget"; - content["price"] = 0.99;//bad use of floating point number, just an example! + content["percent"] = 0.99; Variant::List colours; colours.push_back(Variant("red")); colours.push_back(Variant("green")); |