From 804065a0fa51746788d24cf368c5b4c62ce2cb18 Mon Sep 17 00:00:00 2001 From: Makhnev Petr <51853996+i582@users.noreply.github.com> Date: Fri, 3 Feb 2023 11:17:56 +0400 Subject: [PATCH] docs: remove note illustrating shadowng of import name, due to 0b7a1cd (#17208) --- doc/docs.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 8aafafd9bb..839e663291 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -448,17 +448,6 @@ fn main() { Unlike most languages, variable shadowing is not allowed. Declaring a variable with a name that is already used in a parent scope will cause a compilation error. -You can shadow imported modules though, as it is very useful in some situations: -```v ignore -import ui -import gg - -fn draw(ctx &gg.Context) { - gg := ctx.parent.get_ui().gg - gg.draw_rect(10, 10, 100, 50) -} -``` - ## V Types ### Primitive types