From e877862d5b94876fda62c47ec7f5c0aa0c5d3275 Mon Sep 17 00:00:00 2001
From: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Date: Thu, 23 Jun 2022 16:08:56 +0800
Subject: [PATCH] [Docs] Improve docstring (#324)

* Fix docstring format of BaseDataElement

* fix docstring
---
 mmengine/data/base_data_element.py | 2 +-
 mmengine/registry/registry.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mmengine/data/base_data_element.py b/mmengine/data/base_data_element.py
index 55b2e40d..9ceaab73 100644
--- a/mmengine/data/base_data_element.py
+++ b/mmengine/data/base_data_element.py
@@ -88,7 +88,7 @@ class BaseDataElement:
         >>> gt_instances1 = gt_instance.new(
         ...                     metainfo=dict(img_id=1, img_shape=(640, 640)),
         ...                     bboxes=torch.rand((5, 4)),
-...                             scores=torch.rand((5,)))
+        ...                     scores=torch.rand((5,)))
         >>> gt_instances2 = gt_instances1.new()
 
         >>> # add and process property
diff --git a/mmengine/registry/registry.py b/mmengine/registry/registry.py
index 45f64300..58a6f7d0 100644
--- a/mmengine/registry/registry.py
+++ b/mmengine/registry/registry.py
@@ -376,7 +376,7 @@ class Registry:
 
         - ``key`` contains a scope name and it is not equal to the scope of
           the current registry (e.g., "mmdet"), e.g., "mmcls.FCNet": If the
-          scope exists in its children, :meth:`get`will get "FCNet" from
+          scope exists in its children, :meth:`get` will get "FCNet" from
           them. If not, :meth:`get` will first get the root registry and root
           registry call its own :meth:`get` method.
 
-- 
GitLab