[mutter] README: Fix list paragraphs
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] README: Fix list paragraphs
- Date: Wed, 10 Mar 2021 10:02:39 +0000 (UTC)
commit acbaccd5c95e8d9c290674d8c4123468e1ee3e3f
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Wed Mar 10 06:00:54 2021 +0000
README: Fix list paragraphs
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1770>
README.md | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/README.md b/README.md
index d57296a7c7..2ec5fac80c 100644
--- a/README.md
+++ b/README.md
@@ -46,16 +46,16 @@ with some additions:
- Usage of g_autofree and g_autoptr are encouraged. The style used is
-```c
- g_autofree char *text = NULL;
- g_autoptr (MetaSomeThing) thing = NULL;
+ ```c
+ g_autofree char *text = NULL;
+ g_autoptr (MetaSomeThing) thing = NULL;
- text = g_strdup_printf ("The text: %d", a_number);
- thing = g_object_new (META_TYPE_SOME_THING,
- "text", text,
- NULL);
- thinger_use_thing (rocket, thing);
-```
+ text = g_strdup_printf ("The text: %d", a_number);
+ thing = g_object_new (META_TYPE_SOME_THING,
+ "text", text,
+ NULL);
+ thinger_use_thing (rocket, thing);
+ ```
- Declare variables at the top of the block they are used, but avoid
non-trivial logic among variable declarations. Non-trivial logic can be
@@ -65,14 +65,14 @@ with some additions:
- Instead of boolean arguments in functions, prefer enums or flags when
they're more expressive. The naming convention for flags is
-```c
-typedef _MetaSomeThingFlags
-{
- META_SOME_THING_FLAG_NONE = 0,
- META_SOME_THING_FLAG_ALTER_REALITY = 1 << 0,
- META_SOME_THING_FLAG_MANIPULATE_PERCEPTION = 1 << 1,
-} MetaSomeThingFlags;
-```
+ ```c
+ typedef _MetaSomeThingFlags
+ {
+ META_SOME_THING_FLAG_NONE = 0,
+ META_SOME_THING_FLAG_ALTER_REALITY = 1 << 0,
+ META_SOME_THING_FLAG_MANIPULATE_PERCEPTION = 1 << 1,
+ } MetaSomeThingFlags;
+ ```
- Use `g_new0()` etc instead of `g_slice_new0()`.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]