From 6f1d9ca2b60aa51ac960a9cdf3c7f93449126394 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 1 Jan 2025 10:51:34 -0800 Subject: [PATCH] Remove misleading comment --- assets/docs.md | 2 +- v-types.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/docs.md b/assets/docs.md index 9d6fddb34..70bcfb2d4 100644 --- a/assets/docs.md +++ b/assets/docs.md @@ -579,7 +579,7 @@ d := b + x // d is of type `f64` - automatic promotion of `x`'s value ```v nofmt name := 'Bob' -assert name.len == 3 // will print 3 +assert name.len == 3 assert name[0] == u8(66) // indexing gives a byte, u8(66) == `B` assert name[1..3] == 'ob' // slicing gives a string 'ob' diff --git a/v-types.html b/v-types.html index de55e39e8..92cfcd1a3 100644 --- a/v-types.html +++ b/v-types.html @@ -880,7 +880,7 @@

Primitive types

Strings

name := 'Bob' -assert name.len == 3 // will print 3 +assert name.len == 3 assert name[0] == u8(66) // indexing gives a byte, u8(66) == `B` assert name[1..3] == 'ob' // slicing gives a string 'ob'