summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/guides/mrbgems.md4
-rw-r--r--doc/guides/symbol.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/guides/mrbgems.md b/doc/guides/mrbgems.md
index 88c5aedba..e67a260d1 100644
--- a/doc/guides/mrbgems.md
+++ b/doc/guides/mrbgems.md
@@ -273,7 +273,7 @@ mrbgems expects that you have implemented a C method called
by the name of your GEM. If you call your GEM `c_extension_example`, your
initialisation method could look like this:
-```C
+```c
void
mrb_c_extension_example_gem_init(mrb_state* mrb) {
struct RClass *class_cextension = mrb_define_module(mrb, "CExtension");
@@ -288,7 +288,7 @@ mrbgems expects that you have implemented a C method called
by the name of your GEM. If you call your GEM `c_extension_example`, your
finalizer method could look like this:
-```C
+```c
void
mrb_c_extension_example_gem_final(mrb_state* mrb) {
free(someone);
diff --git a/doc/guides/symbol.md b/doc/guides/symbol.md
index e9e72a6d3..5ce8cdd4d 100644
--- a/doc/guides/symbol.md
+++ b/doc/guides/symbol.md
@@ -4,7 +4,7 @@ Symbols in `mruby` C source code is represented by `mrb_sym` which is alias of
`uint32_t`. Lower 30 bits are used for symbols so that higher 2 bits can be
used as flags, e.g. `struct mt_elem` in `class.c`.
-```C
+```c
struct mt_elem {
union mt_ptr ptr;
size_t func_p:1;