Skip to content

Commit 2d8d4b0

Browse files
committed
Review: Rename with_documentation() to doc()
1 parent 3e44fb6 commit 2d8d4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ impl Field {
11051105
}
11061106

11071107
/// Set field's documentation.
1108-
pub fn with_documentation(&mut self, documentation: &str) -> &mut Self {
1108+
pub fn doc(&mut self, documentation: &str) -> &mut Self {
11091109
self.documentation = documentation.into();
11101110
self
11111111
}

0 commit comments

Comments
 (0)