[gi-docgen] utils: Remove duplicate parenthesis
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen] utils: Remove duplicate parenthesis
- Date: Wed, 29 Sep 2021 16:54:47 +0000 (UTC)
commit 55f373737c3a2d5dcd1056450f4f24a8351c4326
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Sep 29 17:54:16 2021 +0100
utils: Remove duplicate parenthesis
We already provide the symbol name with `()`.
gidocgen/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/utils.py b/gidocgen/utils.py
index 8ae0478..e2ed0f3 100644
--- a/gidocgen/utils.py
+++ b/gidocgen/utils.py
@@ -576,7 +576,7 @@ class LinkGenerator:
elif self._fragment == 'signal':
return f"<code>{self._type}::{self._signal_name}</code>"
elif self._fragment in ['ctor', 'func', 'method', 'class_method']:
- return f"<code>{self._symbol_name}()</code>"
+ return f"<code>{self._symbol_name}</code>"
elif self._fragment == 'vfunc':
return f"<code>{self._ns}.{self._type}.{self._vfunc_name}</code>"
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]