Skip to content

Modify a comment of enum's method more correctly #34

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

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

suzuki
Copy link
Contributor

@suzuki suzuki commented Mar 7, 2022

About

  • 英語マニュアルの以下の部分の翻訳についての提案です

    Not part of an interface; that's fine.

  • 原文のこの部分は「Enum では Interface 定義したメソッド以外も書ける」という説明だと思います
    • 「インターフェイスの一部ではないので、正しいコード」では意味が少し違うのではないでしょうか
    • 「インターフェイスの一部ではないが、正しいコード」という表現を提案します

@mumumu mumumu self-requested a review March 7, 2022 10:58
Copy link
Member

@mumumu mumumu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「インターフェイスの一部ではないので、正しいコード」

上記を逆にすると、「インターフェイスの一部の場合は、正しくないコード」となってしまい、Enum がインターフェイスを実装できることと矛盾してしまいます。

その意味でも、本件は修正したほうが良いですね。
指摘ありがとうございます。

@mumumu mumumu merged commit 9025eab into php:master Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants