[gnome-devel-docs/wip/swilmet/various-fixes] programming-guidelines: fix GNU code example
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs/wip/swilmet/various-fixes] programming-guidelines: fix GNU code example
- Date: Fri, 13 Feb 2015 16:31:19 +0000 (UTC)
commit 2753b58125a0f7302b42b1cd340e58d3a15fc36a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Feb 13 17:29:21 2015 +0100
programming-guidelines: fix GNU code example
It is even explained later in the page that:
if (blah)
{
/* ... */
/* ... */
}
else
/* ... */
is invalid.
programming-guidelines/C/c-coding-style.page | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/programming-guidelines/C/c-coding-style.page b/programming-guidelines/C/c-coding-style.page
index 4533555..2f2b3da 100644
--- a/programming-guidelines/C/c-coding-style.page
+++ b/programming-guidelines/C/c-coding-style.page
@@ -227,7 +227,9 @@ if (condition)
plus_one);
}
else
- another_single_statement (arg1, arg2);</code>
+ {
+ another_single_statement (arg1, arg2);
+ }</code>
</item>
<item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]