aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md24
1 files changed, 11 insertions, 13 deletions
diff --git a/README.md b/README.md
index 37faf20..2e488c9 100644
--- a/README.md
+++ b/README.md
@@ -4,20 +4,18 @@ Simple [matrix](https://matrix.org) client.
# Examples
-From the `examples` directory
+From the `examples` directory:
-```
-use v6;
-use Matrix::Client;
+ use v6;
+ use Matrix::Client;
-# Instantiate a new client for a given home-server
-my $client = Matrix::Client.new: :home-server<https://matrix.org>
-# Login
-$client.login: @*ARGS[0], @*ARGS[1];
+ # Instantiate a new client for a given home-server
+ my $client = Matrix::Client.new: :home-server<https://matrix.org>
+ # Login
+ $client.login: @*ARGS[0], @*ARGS[1];
-# Show all joined rooms
-say $client.rooms;
+ # Show all joined rooms
+ say $client.rooms;
-# And finally logout.
-$client.logout
-```
+ # And finally logout.
+ $client.logout