eo: fix efl_future_then example.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 7 Dec 2018 12:22:31 +0000 (13:22 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Dec 2018 04:20:08 +0000 (13:20 +0900)
Summary: Depends on D7393

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7472

Differential Revision: https://phab.enlightenment.org/D7423

src/lib/eo/Eo.h

index e953ac2..ca133df 100644 (file)
@@ -522,7 +522,7 @@ typedef struct _Efl_Future_Cb_Desc {
  *   //Usually this would be done with an eina_future_race() of the download promise and a timeout promise,
  *   //however the following example is useful to illustrate efl_key_data_set() usage.
  *   efl_key_data_set(downloader, "timer", timer);
- *   eina_future_then_from_desc(f, efl_future_cb(.success = _file_ok, .error = _file_err, .success_type = EINA_VALUE_TYPE_STRING, .free = downloader_free));
+ *   efl_future_then(downloader, f, .success = _file_ok, .error = _file_err, .success_type = EINA_VALUE_TYPE_STRING, .free = downloader_free);
  * }
  * @endcode
  *