Skip to content

Commit debb717

Browse files
committed
added new language: c
1 parent 9e7ea4c commit debb717

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/adapter_learnxiny.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ class LearnBfAdapter(LearnXYAdapter):
173173
_filename = "bf.html.markdown"
174174
_splitted = False
175175

176+
class LearnCAdapter(LearnXYAdapter):
177+
"Learn C in Y Minutes"
178+
prefix = "c"
179+
_filename = "c.html.markdown"
180+
_splitted = False
181+
176182
class LearnChapelAdapter(LearnXYAdapter):
177183
"Learn Chapel in Y Minutes"
178184
prefix = "chapel"
@@ -744,7 +750,13 @@ def _cut_block(block, start_block=False):
744750
answer = answer[:1]
745751
return answer
746752

747-
class LearnSwiftAdapter(LearnXYAdapter):
753+
class LearnRustAdapter(LearnXYAdapter):
754+
"Learn Rust in Y Minutes"
755+
prefix = "rust"
756+
_filename = "rust.html.markdown"
757+
_splitted = False
758+
759+
class LearnSolidityAdapter(LearnXYAdapter):
748760
"Learn Solidity in Y Minutes"
749761
prefix = "solidity"
750762
_filename = "solidity.html.markdown"

0 commit comments

Comments
 (0)