mirror of https://github.com/grpc/grpc.io.git
Add padding to code samples and fix some indentation issues
Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
parent
3b4f54cb78
commit
31451ff6b6
|
@ -225,28 +225,30 @@ int main(int argc, char** argv) {
|
||||||
Just like we did before, from the `examples/cpp/helloworld` directory:
|
Just like we did before, from the `examples/cpp/helloworld` directory:
|
||||||
|
|
||||||
1. Build the client and server after having made changes:
|
1. Build the client and server after having made changes:
|
||||||
```sh
|
|
||||||
$ make
|
```sh
|
||||||
```
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
2. Run the server
|
2. Run the server
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ ./greeter_server
|
$ ./greeter_server
|
||||||
```
|
```
|
||||||
|
|
||||||
3. On a different terminal, run the client
|
3. On a different terminal, run the client
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ ./greeter_client
|
$ ./greeter_client
|
||||||
```
|
```
|
||||||
|
|
||||||
You should see the updated output:
|
You should see the updated output:
|
||||||
```sh
|
|
||||||
$ ./greeter_client
|
```sh
|
||||||
Greeter received: Hello world
|
$ ./greeter_client
|
||||||
Greeter received: Hello again world
|
Greeter received: Hello world
|
||||||
```
|
Greeter received: Hello again world
|
||||||
|
```
|
||||||
|
|
||||||
### What's next
|
### What's next
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,10 @@ p img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight pre {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
margin-top: 2%;
|
margin-top: 2%;
|
||||||
|
|
Loading…
Reference in New Issue