Skip to content

Commit

Permalink
Minor docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 21, 2022
1 parent 3df0e54 commit 11930b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/04_flags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Booleans can either be expected to be explicitly passed in, or, if given a default
value, automatically converted to flags.

To turn off conversion, see :func:`dcargs.conf.FlagConversionOff`.
To turn off conversion, see :class:`dcargs.conf.FlagConversionOff`.



Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/05_hierarchical_configs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ objects. This helps with modularity and grouping in larger projects.
@dataclasses.dataclass
class ExperimentConfig:
# Various configurable options for our optimizer.
optimizer_config: OptimizerConfig
optimizer: OptimizerConfig
# Batch size.
batch_size: int = 32
Expand Down
2 changes: 1 addition & 1 deletion examples/04_flags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Booleans can either be expected to be explicitly passed in, or, if given a default
value, automatically converted to flags.
To turn off conversion, see :func:`dcargs.conf.FlagConversionOff`.
To turn off conversion, see :class:`dcargs.conf.FlagConversionOff`.
Usage:
`python ./04_flags.py --help`
Expand Down
2 changes: 1 addition & 1 deletion examples/05_hierarchical_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class OptimizerConfig:
@dataclasses.dataclass
class ExperimentConfig:
# Various configurable options for our optimizer.
optimizer_config: OptimizerConfig
optimizer: OptimizerConfig

# Batch size.
batch_size: int = 32
Expand Down

0 comments on commit 11930b5

Please sign in to comment.