removed whitespace on code blocks
This commit is contained in:
@@ -12,14 +12,12 @@ Run the following command to install the Mist compiler:
|
|||||||
|
|
||||||
```bash title="Terminal"
|
```bash title="Terminal"
|
||||||
cargo install [email protected]
|
cargo install [email protected]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Once the installation finishes, verify it by checking the version:
|
Once the installation finishes, verify it by checking the version:
|
||||||
|
|
||||||
```bash title="Terminal"
|
```bash title="Terminal"
|
||||||
mist version
|
mist version
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -35,7 +33,6 @@ If you haven't already, create a new Cargo project and navigate into the directo
|
|||||||
```bash title="Terminal"
|
```bash title="Terminal"
|
||||||
cargo new my-mist-app
|
cargo new my-mist-app
|
||||||
cd my-mist-app
|
cd my-mist-app
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure Mist
|
### Configure Mist
|
||||||
@@ -57,7 +54,6 @@ Since Mist compiles down to Rust, you need to point Cargo to the generated outpu
|
|||||||
[[bin]]
|
[[bin]]
|
||||||
name = "main"
|
name = "main"
|
||||||
path = "build/main.rs"
|
path = "build/main.rs"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Pro Tip:** You’ll probably want to add `/build` to your `.gitignore` file to keep your repository clean!
|
> **Pro Tip:** You’ll probably want to add `/build` to your `.gitignore` file to keep your repository clean!
|
||||||
@@ -72,7 +68,6 @@ Now for the fun part! Create a new file at `src/main.mist` and add the following
|
|||||||
void main() {
|
void main() {
|
||||||
println!("Hello World!");
|
println!("Hello World!");
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build and Run
|
### Build and Run
|
||||||
@@ -81,7 +76,6 @@ To turn your Mist code into an executable, use the `build` command:
|
|||||||
|
|
||||||
```bash title="Terminal"
|
```bash title="Terminal"
|
||||||
mist build
|
mist build
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Once the build is successful, you can run your program using standard Cargo commands:
|
Once the build is successful, you can run your program using standard Cargo commands:
|
||||||
|
|||||||
Reference in New Issue
Block a user