Skip to content

mutatingに関しての説明箇所の翻訳ズレ修正 #619

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 2 commits into from
Apr 11, 2025

Conversation

Ryota-Kurokawa
Copy link
Contributor

Closes #618

Copy link
Owner

@stzn stzn left a comment

Choose a reason for hiding this comment

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

ありがとうございますー!とても助かりますmm
一点細かい点をコメントしましたが、ほぼLGTMです!

あと、ファイルの先頭に「最終更新日」という項目があるので、そちらも更新していただけるとうれしいです!

@@ -123,7 +123,7 @@ fixedPoint.moveBy(x: 2.0, y: 3.0)

### mutating メソッド内からselfへの値の割り当て\(Assigning to self Within a Mutating Method\)

メソッドを変更すると、まったく新しいインスタンスを暗黙的な `self` プロパティに割り当てることができます。上記の `Point` の例は、代わりに次のように記述できます:
`mutating` なメソッドは、まったく新しいインスタンスを暗黙的な `self` プロパティに割り当てることができます。上記の `Point` の例は、代わりに次のように記述できます:
Copy link
Owner

Choose a reason for hiding this comment

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

このセクションのタイトルと合わせて「な」はなくてもよいかなと思いました。

Suggested change
`mutating` なメソッドは、まったく新しいインスタンスを暗黙的な `self` プロパティに割り当てることができます。上記の `Point` の例は、代わりに次のように記述できます:
`mutating` メソッドは、まったく新しいインスタンスを暗黙的な `self` プロパティに割り当てることができます。上記の `Point` の例は、代わりに次のように記述できます:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ありがとうございます!

@Ryota-Kurokawa
Copy link
Contributor Author

修正完了しました!

Copy link
Owner

@stzn stzn left a comment

Choose a reason for hiding this comment

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

LGTMです!ありがとうございますー!

@stzn stzn merged commit 8cbab2b into stzn:master Apr 11, 2025
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