eventing/samples/pubsub: fix copy paste issue (#828)

* eventing/samples/pubsub: fix copy paste issue

See the line I changed, when I paste it to my zsh terminal, it thinks the
closing double-quote is missing. Turns out the !" is a special sequence in zsh
so it's better not to end a sample command like this.

Source: https://unix.stackexchange.com/questions/497328/zsh-thinks-unterminated-quote-if-preceded-by-exclamation-mark/497335#497335

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>

* Remove comma, match up quotation marks
This commit is contained in:
Ahmet Alp Balkan 2019-01-30 10:21:37 -08:00 committed by Knative Prow Robot
parent 996a43d378
commit c4d9e58d78
1 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,7 @@ source is most useful as a bridge from other GCP services, such as
Publish messages to your GCP PubSub Topic:
```shell
gcloud pubsub topics publish testing --message="Hello World!"
gcloud pubsub topics publish testing --message="Hello world"
```
## Verify
@ -164,7 +164,7 @@ You should see log lines similar to:
```json
{
"ID": "284375451531353",
"Data": "SGVsbG8gV29ybGQh",
"Data": "SGVsbG8sIHdvcmxk",
"Attributes": null,
"PublishTime": "2018-10-31T00:00:00.00Z"
}
@ -175,10 +175,10 @@ you [base-64 decode](https://www.base64decode.org/) the `Data` field, you should
see the sent message:
```shell
echo "SGVsbG8gV29ybGQh" | base64 --decode
echo "SGVsbG8sIHdvcmxk" | base64 --decode
```
Results in: `Hello World!".
Results in: "Hello world"
For more information about the format of the message, see the
[PubsubMessage documentation](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage).