rust-unofficial/patterns

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

Offen

#338 geöffnet am 10.01.2023

 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Shell (292 Forks)batch import
A-patternC-clarificationgood first issue

Repository-Metriken

Stars
 (6.622 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide