From 67cbe5efebb6cb0af74b43e6c761ef445cfca43c Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 2 Dec 2023 17:44:24 +0100 Subject: [PATCH] Mark code blocks as no-run --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c3c5957..71e0553 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ instead of worrying about the underlying implementation details. To connect to a Spacebar compatible server, you need to create an [`Instance`](https://docs.rs/chorus/latest/chorus/instance/struct.Instance.html) like this: -``` +```rs use chorus::instance::Instance; use chorus::UrlBundle; @@ -35,7 +35,7 @@ This Instance can now be used to log in, register and from there on, interact wi Logging in correctly provides you with an instance of [`ChorusUser`](https://docs.rs/chorus/latest/chorus/instance/struct.ChorusUser.html), with which you can interact with the server and manipulate the account. Assuming you already have an account on the server, you can log in like this: -``` +```rs use chorus::types::LoginSchema; // Assume, you already have an account created on this instance. Registering an account works // the same way, but you'd use the Register-specific Structs and methods instead.