Browse Source

fix gogs do not knows dlang syntax

Тарас 1 month ago
parent
commit
546a58c78b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      docs/readme.md

+ 2 - 4
docs/readme.md

@@ -80,7 +80,7 @@ todo add examples
 
 ## 2.4 Pattern Matching at functions too (like in Erlang)
 Function overloading in dlang allows to define the same function but with different versions for different data types:
-```dlang
+```
 int my_func(int x){
     return x;
 }
@@ -103,7 +103,7 @@ my_func(9) -> 9 * 3;
 my_func(X) -> X * 4.
 ```
 ->
-```dlang
+```
 int my_func(int x){
     if(x == 1){
         return 1;
@@ -386,9 +386,7 @@ switch(x){
 ```
 
 todo more examples -- with switch case dlang
-```
 
-```
 
 ## 2.5 aliases for imports, externs etc
 ```