浏览 168
分享
Initializing Struct References
Use &T{}
instead of new(T)
when initializing struct references so that itis consistent with the struct initialization.
Bad | Good |
---|---|
|
|
评论列表