Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[制御フロー(Control Flow)]ドキュメント参照の確認と修正 #456

Closed
KaitoMuraoka opened this issue Aug 27, 2023 · 3 comments · Fixed by #457
Closed

[制御フロー(Control Flow)]ドキュメント参照の確認と修正 #456

KaitoMuraoka opened this issue Aug 27, 2023 · 3 comments · Fixed by #457

Comments

@KaitoMuraoka
Copy link
Contributor

KaitoMuraoka commented Aug 27, 2023

問題の箇所

以下の場所で参照箇所の表記にズレがありました。何か意図があってこの表記にしているのであれば、解説をいただきたいです。

上のコードでは、`if` 式の一方の分岐に `String` 値が、もう一方の分岐に `nil` 値が設定されています。`nil` 値は任意のオプショナル型の値として使用できるため、doc:TheBasics#Type-Annotations [型注釈\(Type Annotations\)](../language-guide/the-basics.md#type-annotations)にあるように、`freezeWarning` がオプショナルの文字列であることを明示的に記述する必要があります。

スクリーンショット 2023-08-27 11 07 09

問題ページ

修正案

以下のような表記が良いと考えます。

- doc:TheBasics#Type-Annotations [型注釈\(Type Annotations\)](../language-guide/the-basics.md#type-annotations)
+ [型注釈\(Type Annotations\)](../language-guide/the-basics.md#type-annotations)
@stzn
Copy link
Owner

stzn commented Aug 27, 2023

@TonTonbow さん

ご指摘ありがとうございます。

何か意図があってこの表記にしているのであれば、解説をいただきたいです。

ただの間違いです。DocC対応を試している際に混入してしまったようです。大変申し訳ございませんmm
修正案の通りでよいと思います。

@KaitoMuraoka
Copy link
Contributor Author

@stzn
ありがとうございます!
では自分がそのまま修正します 🙋

@stzn
Copy link
Owner

stzn commented Aug 27, 2023

ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants