From 40ab77288d44b5cc8374c6b32da17108efab4a32 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 20 Nov 2020 07:56:53 -0800 Subject: [PATCH] fix: namespaces.md --- doc/namespaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/namespaces.md b/doc/namespaces.md index 671a4c4b4a..09df93d3e8 100644 --- a/doc/namespaces.md +++ b/doc/namespaces.md @@ -100,9 +100,9 @@ end Foo ``` Like sections, nested namespaces have to be closed in the order they are opened. -Also, a namespace cannot be declared within a section; namespaces have to live on the outer levels. - Namespaces and sections serve different purposes: namespaces organize data and sections declare variables for insertion in definitions. +Sections are also useful for delimiting the scope of commands such as ``set_option`` and ``open``. + In many respects, however, a ``namespace ... end`` block behaves the same as a ``section ... end`` block. In particular, if you use the ``variable`` command within a namespace, its scope is limited to the namespace. Similarly, if you use an ``open`` command within a namespace, its effects disappear when the namespace is closed.