docs: fix some mixed indentation, found by `v check-md .`

pull/9701/head
Delyan Angelov 2021-04-12 15:13:00 +03:00
parent ee42dd914c
commit 79284f0458
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 19 additions and 18 deletions

View File

@ -374,7 +374,7 @@ In development mode the compiler will warn you that you haven't used the variabl
In production mode (enabled by passing the `-prod` flag to v `v -prod foo.v`) In production mode (enabled by passing the `-prod` flag to v `v -prod foo.v`)
it will not compile at all (like in Go). it will not compile at all (like in Go).
```v failcompile ```v failcompile nofmt
fn main() { fn main() {
a := 10 a := 10
if true { if true {
@ -937,7 +937,7 @@ import crypto.sha256
import mymod.sha256 as mysha256 import mymod.sha256 as mysha256
fn main() { fn main() {
v_hash := sha256.sum('hi'.bytes()).hex() v_hash := mysha256.sum('hi'.bytes()).hex()
my_hash := mysha256.sum('hi'.bytes()).hex() my_hash := mysha256.sum('hi'.bytes()).hex()
assert my_hash == v_hash assert my_hash == v_hash
} }
@ -3026,6 +3026,7 @@ fn main() {
```v failcompile ```v failcompile
module main module main
// hello_test.v // hello_test.v
fn test_hello() { fn test_hello() {
assert hello() == 'Hello world' assert hello() == 'Hello world'