Commit d3e0292c authored by Chase Phillips's avatar Chase Phillips Committed by Commit Bot

Mojo markdown fixes

Bug: None
Change-Id: I1e86c4a52bb3f0eca8c896b5e23664ab1ca1f505
Reviewed-on: https://chromium-review.googlesource.com/1178629
Commit-Queue: Chase Phillips <cmp@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583805}
parent 6157fa65
...@@ -46,7 +46,7 @@ This is a reasonable option when you can guarantee that all interconnected ...@@ -46,7 +46,7 @@ This is a reasonable option when you can guarantee that all interconnected
process binaries are linking against precisely the same revision of Mojo Core. process binaries are linking against precisely the same revision of Mojo Core.
To support other scenarios, use dynamic linking. To support other scenarios, use dynamic linking.
## Dynamic Linking ### Dynamic Linking
On some platforms, it's also possible for applications to rely on a On some platforms, it's also possible for applications to rely on a
dynamically-linked Mojo Core library (`libmojo_core.so` or `mojo_core.dll`) dynamically-linked Mojo Core library (`libmojo_core.so` or `mojo_core.dll`)
instead of statically linking against Mojo Core. instead of statically linking against Mojo Core.
......
...@@ -47,7 +47,7 @@ mojo::MessagePipe pipe; ...@@ -47,7 +47,7 @@ mojo::MessagePipe pipe;
// NOTE: Because pipes are bi-directional there is no implicit semantic // NOTE: Because pipes are bi-directional there is no implicit semantic
// difference between |handle0| or |handle1| here. They're just two ends of a // difference between |handle0| or |handle1| here. They're just two ends of a
// pipe. The choice to treat one as a "client" and one as a "server" is entirely // pipe. The choice to treat one as a "client" and one as a "server" is entirely
// a the API user's decision. // the API user's decision.
mojo::ScopedMessagePipeHandle client = std::move(pipe.handle0); mojo::ScopedMessagePipeHandle client = std::move(pipe.handle0);
mojo::ScopedMessagePipeHandle server = std::move(pipe.handle1); mojo::ScopedMessagePipeHandle server = std::move(pipe.handle1);
``` ```
...@@ -124,7 +124,7 @@ for detailed C++ data pipe API documentation. ...@@ -124,7 +124,7 @@ for detailed C++ data pipe API documentation.
## Shared Buffers ## Shared Buffers
A new shared buffers can be allocated like so: A new shared buffer can be allocated like so:
``` cpp ``` cpp
mojo::ScopedSharedBufferHandle buffer = mojo::ScopedSharedBufferHandle buffer =
......
...@@ -283,7 +283,7 @@ For details on how unions like this translate to generated bindings code, see ...@@ -283,7 +283,7 @@ For details on how unions like this translate to generated bindings code, see
### Enumeration Types ### Enumeration Types
Enumeration types may be defined using the **enum** keyword either directly Enumeration types may be defined using the **enum** keyword either directly
within a module or within the namespace of some struct or interface: within a module or nested within the namespace of some struct or interface:
``` ```
module business.mojom; module business.mojom;
...@@ -304,8 +304,8 @@ struct Employee { ...@@ -304,8 +304,8 @@ struct Employee {
}; };
``` ```
That that similar to C-style enums, individual values may be explicitly assigned Similar to C-style enums, individual values may be explicitly assigned within an
within an enum definition. By default values are based at zero and incremenet by enum definition. By default, values are based at zero and increment by
1 sequentially. 1 sequentially.
The effect of nested definitions on generated bindings varies depending on the The effect of nested definitions on generated bindings varies depending on the
...@@ -314,7 +314,7 @@ target language. See [documentation for individual target languages](#Generated- ...@@ -314,7 +314,7 @@ target language. See [documentation for individual target languages](#Generated-
### Constants ### Constants
Constants may be defined using the **const** keyword either directly within a Constants may be defined using the **const** keyword either directly within a
module or within the namespace of some struct or interface: module or nested within the namespace of some struct or interface:
``` ```
module business.mojom; module business.mojom;
...@@ -341,7 +341,7 @@ target language. See [documentation for individual target languages](#Generated- ...@@ -341,7 +341,7 @@ target language. See [documentation for individual target languages](#Generated-
An **interface** is a logical bundle of parameterized request messages. Each An **interface** is a logical bundle of parameterized request messages. Each
request message may optionally define a parameterized response message. Here's request message may optionally define a parameterized response message. Here's
syntax to define an interface `Foo` with various kinds of requests: an example to define an interface `Foo` with various kinds of requests:
``` ```
interface Foo { interface Foo {
......
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