From 1142588abda79d1b3c5a94449cf8074964df9228 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 21 Apr 2019 22:28:57 +0100 Subject: A whole bunch of docstrings. --- pydis_site/apps/api/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pydis_site/apps/api/views.py') diff --git a/pydis_site/apps/api/views.py b/pydis_site/apps/api/views.py index c529da0f..c7dbf5c8 100644 --- a/pydis_site/apps/api/views.py +++ b/pydis_site/apps/api/views.py @@ -58,8 +58,10 @@ class RulesView(APIView): @staticmethod def _format_link(description, link, target): """ - Build the markup necessary to render `link` with `description` - as its description in the given `target` language. + Build the markup for rendering the link. + + This will render `link` with `description` as its description in the given + `target` language. Arguments: description (str): -- cgit v1.2.3