From 300c72e04425dc7d2eae42298ed2a33ee8508a0e Mon Sep 17 00:00:00 2001 From: Jon Szymaniak Date: Tue, 25 Nov 2014 13:49:14 -0500 Subject: [PATCH] doc: Fixed GitHub-specific code snippet issue The code snippet in the coding syle & guidelines doc was not rendering properly on GitHub -- it was truncating the snippet. This has been fixed and the C language has been specified for syntax highlighting. --- doc/development/style_and_conventions.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/development/style_and_conventions.md b/doc/development/style_and_conventions.md index 79df9220..ba39461d 100644 --- a/doc/development/style_and_conventions.md +++ b/doc/development/style_and_conventions.md @@ -143,7 +143,7 @@ single statement. This is intended to avoid mistakes when other developers modify the code, add debug statements, etc. ------------------------------------------------------------------------------- -

+```c
 int mymodule_perform_device_operation(struct bladerf *dev,
                                       const uint8_t *input_array,
                                       uint8_t **output_array,
@@ -218,7 +218,8 @@ out:
     }
 
     return status;
-}
+} +``` -------------------------------------------------------------------------------- ### Use of `goto` ###