diff --git a/docs/mojo_guide.md b/docs/mojo_guide.md index ba38d1848fc869..c5ec846ce5ab2f 100644 --- a/docs/mojo_guide.md +++ b/docs/mojo_guide.md @@ -15,7 +15,7 @@ that message on the other endpoint. Message pipes are thus bidirectional. A **mojom** file describes **interfaces** which describe strongly typed message structures, similar to proto files. -Given a **mojom interface** and a **message pipe**, the two **message pipes** +Given a **mojom interface** and a **message pipe**, the two **endpoints** can be given the labels **InterfacePtr** and **Binding**. This now describes a strongly typed **message pipe** which transports messages described by the **mojom interface**. The **InterfacePtr** is the **endpoint** which "sends" diff --git a/mojo/public/cpp/bindings/README.md b/mojo/public/cpp/bindings/README.md index 89e5d95b157f66..5630adb113459f 100644 --- a/mojo/public/cpp/bindings/README.md +++ b/mojo/public/cpp/bindings/README.md @@ -669,7 +669,7 @@ For example, consider the following Mojom definitions: ```cpp union Value { int64 int_value; - float32 float_value; + float float_value; string string_value; }; @@ -678,12 +678,17 @@ interface Dictionary { }; ``` -This generates a the following C++ interface: +This generates the following C++ interface: ```cpp class Value { public: - virtual ~Value() {} + ~Value() {} +}; + +class Dictionary { + public: + virtual ~Dictionary() {} virtual void AddValue(const std::string& key, ValuePtr value) = 0; };