Commit 64bae933 authored by yzshen's avatar yzshen Committed by Commit bot

Mojo C++ bindings: minor corrections for the StructTraits documentation.

BUG=None

Review-Url: https://codereview.chromium.org/2277903004
Cr-Commit-Position: refs/heads/master@{#414744}
parent bcfa6fa0
...@@ -122,9 +122,9 @@ namespace mojo { ...@@ -122,9 +122,9 @@ namespace mojo {
// reference/value to the Mojo bindings for serialization: // reference/value to the Mojo bindings for serialization:
// - if T is used in the "type_mappings" section of a typemap config file, // - if T is used in the "type_mappings" section of a typemap config file,
// you need to declare it as pass-by-value: // you need to declare it as pass-by-value:
// type_mappings = [ "MojomType=T(move_only)" ] // type_mappings = [ "MojomType=T[move_only]" ]
// or // or
// type_mappings = [ "MojomType=T(copyable_pass_by_value)" ] // type_mappings = [ "MojomType=T[copyable_pass_by_value]" ]
// //
// - if another type U's StructTraits/UnionTraits has a getter for T, it // - if another type U's StructTraits/UnionTraits has a getter for T, it
// needs to return non-const reference/value. // needs to return non-const reference/value.
......
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