Merge pull request #394 from zongzi531/hotfix/struct

Fix typo in compound-type/struct.md
pull/395/head
Sunface 3 years ago committed by GitHub
commit 8ff4f3fc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,7 +190,7 @@ struct AlwaysEqual;
let subject = AlwaysEqual; let subject = AlwaysEqual;
// 我们不关心 AlwaysEqual 的字段数据,只关心它的行为,因此将它声明为元结构体,然后再为它实现某个特征 // 我们不关心 AlwaysEqual 的字段数据,只关心它的行为,因此将它声明为元结构体,然后再为它实现某个特征
impl SomeTrait for AlwaysEqual { impl SomeTrait for AlwaysEqual {
} }

Loading…
Cancel
Save