docs: fix some mixed indentation, found by `v check-md .`
parent
ee42dd914c
commit
79284f0458
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue