Unverified Commit 5c5a8e03 authored by Vinay Kumar's avatar Vinay Kumar Committed by GitHub
Browse files

[Docs] Fix minor typo in docs/en/config.md (#1797)

* minor typo

minor typing bug. replaced `deprecated.py` to `deprecated_cfg.py`

* fixing the typo

as per the example, the directory name is `converters` not `converter`.
parent 00b003da
...@@ -196,5 +196,5 @@ _deprecation_ = dict( ...@@ -196,5 +196,5 @@ _deprecation_ = dict(
```python ```python
>>> cfg = Config.fromfile('./deprecated_cfg.py') >>> cfg = Config.fromfile('./deprecated_cfg.py')
UserWarning: The config file deprecated.py will be deprecated in the future. Please use expected_cfg.py instead. More information can be found at https://github.com/open-mmlab/mmcv/pull/1275 UserWarning: The config file deprecated_cfg.py will be deprecated in the future. Please use expected_cfg.py instead. More information can be found at https://github.com/open-mmlab/mmcv/pull/1275
``` ```
...@@ -31,7 +31,7 @@ In the package, we first create a file to implement builders, named `converters/ ...@@ -31,7 +31,7 @@ In the package, we first create a file to implement builders, named `converters/
```python ```python
from mmcv.utils import Registry from mmcv.utils import Registry
# create a registry for converters # create a registry for converters
CONVERTERS = Registry('converter') CONVERTERS = Registry('converters')
``` ```
Then we can implement different converters in the package. For example, implement `Converter1` in `converters/converter1.py` Then we can implement different converters in the package. For example, implement `Converter1` in `converters/converter1.py`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment