Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 021ab8c2 authored by Dominik Laskowski's avatar Dominik Laskowski
Browse files

FTL: Amend outdated ftl::Function example usage

Bug: 185536303
Flag: DOCS_ONLY
Test: N/A
Change-Id: I96246cacb63dec70caa732064fd5159d596d4e25
parent 1f39c3d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -123,7 +123,7 @@ namespace android::ftl {
//   // Create a typedef to give a more meaningful name and bound the size.
//   // Create a typedef to give a more meaningful name and bound the size.
//   using MyFunction = ftl::Function<int(std::string_view), 2>;
//   using MyFunction = ftl::Function<int(std::string_view), 2>;
//   int* ptr = nullptr;
//   int* ptr = nullptr;
//   auto f1 = MyFunction::make_function(
//   auto f1 = MyFunction::make(
//       [cls = &cls, ptr](std::string_view sv) {
//       [cls = &cls, ptr](std::string_view sv) {
//           return cls->on_string(ptr, sv);
//           return cls->on_string(ptr, sv);
//       });
//       });