mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-02 19:22:49 +02:00
[elixir] unless got deprecated v1.18 (#5312)
* [elixir/en] unless is deprecated since v1.18 * removed unless from the rest of the languages
This commit is contained in:
@@ -151,13 +151,6 @@ else
|
||||
"This will"
|
||||
end
|
||||
|
||||
# 也有 `unless`
|
||||
unless true do
|
||||
"This will never be seen"
|
||||
else
|
||||
"This will"
|
||||
end
|
||||
|
||||
# 還記得模式比對嗎?Elixir 中許多控制流程的結構都依賴模式比對來運作。
|
||||
|
||||
# `case` 讓我們可以將一個值與許多模式進行比對:
|
||||
|
Reference in New Issue
Block a user