Skip to content

Commit

Permalink
Fix minor typos in bindings docs
Browse files Browse the repository at this point in the history
This is just some small issues I encountered while reading the bindings docs.

Change-Id: I379ce3efce4a2e34cb8ab9cb7ca21983d1f5d3bd
Reviewed-on: https://chromium-review.googlesource.com/544447
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: Andrew Moylan <amoylan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#482452}
  • Loading branch information
Andrew Moylan authored and Commit Bot committed Jun 26, 2017
1 parent b999140 commit 341cece
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions mojo/public/cpp/bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ module business.mojom;

enum Department {
kEngineering,
kMarketng,
kMarketing,
kSales,
};
```
Expand Down Expand Up @@ -1311,6 +1311,7 @@ class StructTraits
Generated `ReadFoo` methods always convert `multi_word_field_name` fields to
`ReadMultiWordFieldName` methods.
<a name="Blink-Type-Mapping"></a>
### Variants
By now you may have noticed that additional C++ sources are generated when a
Expand Down Expand Up @@ -1360,8 +1361,8 @@ out/gen/sample/db.mojom-shared-internal.h
```
Including either variant's header (`db.mojom.h` or `db.mojom-blink.h`)
implicitly includes the shared header, but you have on some occasions wish to
include *only* the shared header in some instances.
implicitly includes the shared header, but may wish to include *only* the shared
header in some instances.
Finally, note that for `mojom` GN targets, there is implicitly a corresponding
`mojom_{variant}` target defined for any supported bindings configuration. So
Expand Down
3 changes: 2 additions & 1 deletion mojo/public/tools/bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ This document is a subset of the [Mojo documentation](/mojo).
## Overview

Mojom is the IDL for Mojo bindings interfaces. Given a `.mojom` file, the
[bindings generator](https://cs.chromium.org/chromium/src/mojo/public/tools/bindings)
[bindings
generator](https://cs.chromium.org/chromium/src/mojo/public/tools/bindings/)
outputs bindings for all supported languages: **C++**, **JavaScript**, and
**Java**.

Expand Down

0 comments on commit 341cece

Please sign in to comment.