Skip to content

Commit 0db096f

Browse files
Manisheartholi-obk
andauthored
Update text/0000-packages-as-optional-namespaces.md
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
1 parent 75dd867 commit 0db096f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-packages-as-optional-namespaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Languages like C++ have open namespaces where anyone can write code in any namespace. In C++'s case, this includes the `std` namespace and is only limited by convention. In contrast, Rust has closed namespaces which can only include code from the original namespace definition (the crate).
99

10-
This proposal extends Rust to have partially open namespaces by allowing crate owners to create crates like `parent::foo` that will be available as part of the crate `parent`'s namespace. To protect the use of open namepsaces, the owners of `parent` has exclusive access to publishing crates in that namespace.
10+
This proposal extends Rust to have partially open namespaces by allowing crate owners to create crates like `parent::foo` that will be available as part of the crate `parent`'s namespace. To protect the use of open namespaces, the owners of `parent` has exclusive access to publishing crates in that namespace.
1111

1212
# Motivation
1313

0 commit comments

Comments
 (0)