Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTML entities in tutorials #1839

Merged
merged 2 commits into from Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tutorials/tutorial-five-javascript.md
Expand Up @@ -169,7 +169,7 @@ var amqp = require('amqplib/callback_api');
var args = process.argv.slice(2);

if (args.length == 0) {
console.log("Usage: receive_logs_topic.js <facility>.<severity>");
console.log("Usage: receive_logs_topic.js <facility>.<severity>");
process.exit(1);
}

Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-five-objectivec.md
Expand Up @@ -116,7 +116,7 @@ The code for `emitLogTopic`:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch topic:@"topic_logs"];

[x publish:[msg dataUsingEncoding:NSUTF8StringEncoding] routingKey:routingKey];
Expand All @@ -133,7 +133,7 @@ The code for `receiveLogsTopic`:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch topic:@"topic_logs"];
RMQQueue *q = [ch queue:@"" options:RMQQueueDeclareExclusive];

Expand Down
6 changes: 3 additions & 3 deletions tutorials/tutorial-five-php.md
Expand Up @@ -127,7 +127,7 @@ The code is almost the same as in the
The code for `emit_log_topic.php`:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand All @@ -138,7 +138,7 @@ $channel = $connection->channel();

$channel->exchange_declare('topic_logs', 'topic', false, false, false);

$routing_key = isset($argv[1]) &amp;&amp; !empty($argv[1]) ? $argv[1] : 'anonymous.info';
$routing_key = isset($argv[1]) && !empty($argv[1]) ? $argv[1] : 'anonymous.info';
$data = implode(' ', array_slice($argv, 2));
if (empty($data)) {
$data = "Hello World!";
Expand All @@ -157,7 +157,7 @@ $connection->close();
The code for `receive_logs_topic.php`:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial-four-go.md
Expand Up @@ -388,7 +388,7 @@ If you want to save only 'warning' and 'error' (and not 'info') log
messages to a file, just open a console and type:

```bash
go run receive_logs_direct.go warning error &amp;> logs_from_rabbit.log
go run receive_logs_direct.go warning error &> logs_from_rabbit.log
```

If you'd like to see all the log messages on your screen, open a new
Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-four-objectivec.md
Expand Up @@ -149,7 +149,7 @@ The code for the `emitLogDirect` method:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch direct:@"direct_logs"];

[x publish:[msg dataUsingEncoding:NSUTF8StringEncoding] routingKey:severity];
Expand All @@ -166,7 +166,7 @@ The code for `receiveLogsDirect`:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch direct:@"direct_logs"];
RMQQueue *q = [ch queue:@"" options:RMQQueueDeclareExclusive];

Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial-four-php.md
Expand Up @@ -168,7 +168,7 @@ $channel = $connection->channel();

$channel->exchange_declare('direct_logs', 'direct', false, false, false);

$severity = isset($argv[1]) &amp;&amp; !empty($argv[1]) ? $argv[1] : 'info';
$severity = isset($argv[1]) && !empty($argv[1]) ? $argv[1] : 'info';

$data = implode(' ', array_slice($argv, 2));
if (empty($data)) {
Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-one-objectivec.md
Expand Up @@ -109,7 +109,7 @@ Next we create a channel, which is where most of the API for getting
things done resides:

```objectivec
id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
```

To send, we must declare a queue for us to send to; then we can publish a message
Expand Down Expand Up @@ -161,7 +161,7 @@ Note this matches up with the queue that `send` publishes to.
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];

RMQQueue *q = [ch queue:@"hello"];
```
Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-six-php.md
Expand Up @@ -179,7 +179,7 @@ and it's probably the slowest recursive implementation possible).
The code for our RPC server [rpc_server.php](https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/php/rpc_server.php) looks like this:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down Expand Up @@ -247,7 +247,7 @@ The server code is rather straightforward:
The code for our RPC client [rpc_client.php](https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/php/rpc_client.php):

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial-three-go.md
Expand Up @@ -411,7 +411,7 @@ func main() {
If you want to save logs to a file, just open a console and type:

```bash
go run receive_logs.go &amp;> logs_from_rabbit.log
go run receive_logs.go &> logs_from_rabbit.log
```

If you wish to see the logs on your screen, spawn a new terminal and run:
Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-three-objectivec.md
Expand Up @@ -181,7 +181,7 @@ nameless one. Here goes the code for
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch fanout:@"logs"];

NSString *msg = @"Hello World!";
Expand All @@ -205,7 +205,7 @@ The code for `receiveLogs`:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];
RMQExchange *x = [ch fanout:@"logs"];
RMQQueue *q = [ch queue:@"" options:RMQQueueDeclareExclusive];

Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-three-php.md
Expand Up @@ -195,7 +195,7 @@ nameless one. Here goes the code for
`emit_log.php` script:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down Expand Up @@ -232,7 +232,7 @@ but that's okay for us; if no consumer is listening yet we can safely discard th
The code for `receive_logs.php`:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down
6 changes: 3 additions & 3 deletions tutorials/tutorial-two-objectivec.md
Expand Up @@ -70,7 +70,7 @@ The implementation remains the same apart from the new parameter:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];

RMQQueue *q = [ch queue:@"hello"];

Expand Down Expand Up @@ -338,7 +338,7 @@ Final code of our `newTask:` method:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];

RMQQueue *q = [ch queue:@"task_queue" options:RMQQueueDeclareDurable];

Expand All @@ -357,7 +357,7 @@ And our `workerNamed:`:
RMQConnection *conn = [[RMQConnection alloc] initWithDelegate:[RMQConnectionDelegateLogger new]];
[conn start];

id&lt;RMQChannel&gt; ch = [conn createChannel];
id<RMQChannel> ch = [conn createChannel];

RMQQueue *q = [ch queue:@"task_queue" options:RMQQueueDeclareDurable];

Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial-two-php.md
Expand Up @@ -337,7 +337,7 @@ Putting it all together
Final code of our `new_task.php` file:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down Expand Up @@ -371,7 +371,7 @@ $connection->close();
And our `worker.php`:

```php
&lt;?php
<?php

require_once __DIR__ . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
Expand Down