summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/styleguide.rst
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-01-27 01:02:05 +0100
committerTimothy Warren <tim@timshomepage.net>2012-01-27 01:02:05 +0100
commit82c83078a91acc3ce25572e28096b0b4bbe8d67c (patch)
tree9fa6d86baaa38bab2223d78ec5e8b2ba5c0dc97e /user_guide_src/source/general/styleguide.rst
parent295189dec24ded5617054d62950c27ab544bbdb4 (diff)
Added try catch example in style guide
Diffstat (limited to 'user_guide_src/source/general/styleguide.rst')
-rw-r--r--user_guide_src/source/general/styleguide.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/user_guide_src/source/general/styleguide.rst b/user_guide_src/source/general/styleguide.rst
index b3dc08871..d8bdd0531 100644
--- a/user_guide_src/source/general/styleguide.rst
+++ b/user_guide_src/source/general/styleguide.rst
@@ -441,6 +441,13 @@ same level as the control statement that "owns" them.
// ...
}
}
+
+ try {
+ // ...
+ }
+ catch() {
+ // ...
+ }
**CORRECT**::
@@ -470,6 +477,15 @@ same level as the control statement that "owns" them.
// ...
}
}
+
+ try
+ {
+ // ...
+ }
+ catch()
+ {
+ // ...
+ }
Bracket and Parenthetic Spacing
===============================