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.
This commit is contained in:
parent
d500ffeb51
commit
300c72e044
1 changed files with 3 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ single statement. This is intended to avoid mistakes when other developers
|
|||
modify the code, add debug statements, etc.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
<pre><code>
|
||||
```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;
|
||||
}</code></pre>
|
||||
}
|
||||
```
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
### Use of `goto` ###
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue