Mark code blocks as no-run

This commit is contained in:
bitfl0wer 2023-12-02 17:44:24 +01:00
parent e6c09e44eb
commit 67cbe5efeb
1 changed files with 2 additions and 2 deletions

View File

@ -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: 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::instance::Instance;
use chorus::UrlBundle; 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 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: manipulate the account. Assuming you already have an account on the server, you can log in like this:
``` ```rs
use chorus::types::LoginSchema; use chorus::types::LoginSchema;
// Assume, you already have an account created on this instance. Registering an account works // 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. // the same way, but you'd use the Register-specific Structs and methods instead.