rust-unofficial/patterns

Clarify naming convention of `build()` in section 3.2.1

开放

#338 创建于 2023年1月10日

 (1 条评论) (1 个反应) (0 位负责人)Shell (292 个派生)batch import
A-patternC-clarificationgood first issue

仓库指标

星标
 (6,622 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

The current builder design pattern implies that the method the produces whatever is being built should be named build(), which seems to contradict the Rust API Guidelines on the same subject.

I think there should be some clarifying language around this: whether the method should always be named build(), or be adapted to fit the API.

贡献者指南