Skip to content

Commit b809d0e

Browse files
JL710TedDriggs
authored andcommitted
add documentation for private build method
1 parent 65c87d3 commit b809d0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

derive_builder/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@
438438
//! your own version. Suppression is done using `#[builder(build_fn(skip))]` at the struct level,
439439
//! and renaming is done with `#[builder(build_fn(name = "YOUR_NAME"))]`.
440440
//!
441+
//! Additionally if you want to make the build method private you can apply `#[builder(build_fn(private))]`.
442+
//!
441443
//! ## Pre-Build Validation
442444
//!
443445
//! If you're using the provided `build` method, you can declare

0 commit comments

Comments
 (0)