Update spec/namespaces.md

This commit is contained in:
CyrusNajmabadi 2020-10-27 03:09:28 -04:00 committed by GitHub
parent aab7c2bef3
commit 5fd8498724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ namespace Name
}
```
Specifically, *single_line_namespace_declaration* is treated the same as a *namespace_member_declaration* at the same location in the *compilation_unit* with the same *qualified_identifier*. The *extern_alias_directive*s, *using_directive*s and *type_declaration*s of that *single_line_namespace_declaration* act as if they were declared inside the *namespace_body* of that *namespace_declaration*.
Specifically, a *single_line_namespace_declaration* is treated the same as a *namespace_member_declaration* at the same location in the *compilation_unit* with the same *qualified_identifier*. The *extern_alias_directive*s, *using_directive*s and *type_declaration*s of that *single_line_namespace_declaration* act as if they were declared inside the *namespace_body* of that *namespace_declaration*.
A source file cannot contain both a *single_line_namespace_declaration* and a *namespace_declaration*. A source file cannot contain multiple *single_line_namespace_declaration*s