From b01db13ff77d4f76fd9a4c3a37faa7bf68da0c80 Mon Sep 17 00:00:00 2001 From: Marcel Hellwig Date: Thu, 25 Nov 2021 11:19:33 +0100 Subject: [PATCH] fix method name in example --- docs/using-sdbus-c++.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/using-sdbus-c++.md b/docs/using-sdbus-c++.md index 7bddd71..a0d8d60 100644 --- a/docs/using-sdbus-c++.md +++ b/docs/using-sdbus-c++.md @@ -1003,7 +1003,7 @@ void concatenate(sdbus::Result&& result, std::vector numbe } // Let's send the reply message back to the client - methodResult.returnReply(result); + methodResult.returnResults(result); // Emit the 'concatenated' signal with the resulting string this->emitConcatenated(result); @@ -1011,7 +1011,7 @@ void concatenate(sdbus::Result&& result, std::vector numbe } ``` -The `Result` is a convenience class that represents a future method result, and it is where we write the results (`returnReply()`) or an error (`returnError()`) which we want to send back to the client. +The `Result` is a convenience class that represents a future method result, and it is where we write the results (`returnResults()`) or an error (`returnError()`) which we want to send back to the client. Registraion (`implementedAs()`) doesn't change. Nothing else needs to change.