Skip to content

Commit

Permalink
Review: Rename with_annotation() to annotation()
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette committed Jan 8, 2018
1 parent 2d8d4b0 commit 5aafce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ impl Field {
}

/// Set field's annotation.
pub fn with_annotation(&mut self, annotation: &str) -> &mut Self {
pub fn annotation(&mut self, annotation: &str) -> &mut Self {
self.annotation = annotation.into();
self
}
Expand Down

0 comments on commit 5aafce7

Please sign in to comment.