Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling of class in the docs #10

Merged
merged 2 commits into from
Mar 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config_utilities/docs/Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ ns2:
d: value
```
> **✅ Supports**<br>
> For easier use, `exit_namespace()` followed by `enter_namespace("ns2")` can be replaced by `switch_namespace("n2")`. To exit all open namespaces one can use `clear_namespace()`.
> For easier use, `exit_namespace()` followed by `enter_namespace("ns2")` can be replaced by `switch_namespace("n2")`. To exit all open namespaces one can use `clear_namespaces()`.

> **✅ Supports**<br>
> Recall that [subconfig fields](#sub-configs) by default open a namespace with their field name. Any residual namespace left open in a subconfig will be closed when returning to the original config declaration body.
Expand All @@ -201,12 +201,12 @@ Equivalently, we provide scoped namespace declarations. The below code will prod
void declare_config(MyConfig& config){
field(config.a, "a");
{
Namespace ns("ns1"); // Scoped namespace definition.
NameSpace ns("ns1"); // Scoped namespace definition.
field(config.b, "b");
}
Namespace ns("ns2");
NameSpace ns("ns2");
field(config.c, "c");
Namespace more_ns("ns3");
NameSpace more_ns("ns3");
field(config.d, "d");
}
```
Loading