Commit 89e8bc93 authored by Kenichi Ishibashi's avatar Kenichi Ishibashi Committed by Commit Bot

Fix typo in Mojo C++ bindings README.md

Bug: N/A
Change-Id: I81c242020af0121c6876704839f1a89a751d5b97
Reviewed-on: https://chromium-review.googlesource.com/1163233Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581053}
parent 9a1888cd
...@@ -1138,7 +1138,7 @@ Similarly, assume you have already got an `InterfacePtr<Foo> foo_ptr`, and you ...@@ -1138,7 +1138,7 @@ Similarly, assume you have already got an `InterfacePtr<Foo> foo_ptr`, and you
would like to call `SetBar()` on it. You can do: would like to call `SetBar()` on it. You can do:
``` cpp ``` cpp
AssociatedBind<Bar> bar_binding(some_bar_impl); AssociatedBinding<Bar> bar_binding(some_bar_impl);
BarAssociatedPtrInfo bar_ptr_info; BarAssociatedPtrInfo bar_ptr_info;
BarAssociatedRequest bar_request = MakeRequest(&bar_ptr_info); BarAssociatedRequest bar_request = MakeRequest(&bar_ptr_info);
foo_ptr->SetBar(std::move(bar_ptr_info)); foo_ptr->SetBar(std::move(bar_ptr_info));
...@@ -1148,7 +1148,7 @@ bar_binding.Bind(std::move(bar_request)); ...@@ -1148,7 +1148,7 @@ bar_binding.Bind(std::move(bar_request));
The following code achieves the same purpose: The following code achieves the same purpose:
``` cpp ``` cpp
AssociatedBind<Bar> bar_binding(some_bar_impl); AssociatedBinding<Bar> bar_binding(some_bar_impl);
BarAssociatedPtrInfo bar_ptr_info; BarAssociatedPtrInfo bar_ptr_info;
bar_binding.Bind(&bar_ptr_info); bar_binding.Bind(&bar_ptr_info);
foo_ptr->SetBar(std::move(bar_ptr_info)); foo_ptr->SetBar(std::move(bar_ptr_info));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment