Skip to content

Commit

Permalink
docs: use doc comment for use_integers_for_enums (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
  • Loading branch information
yukinarit and alamb authored Jul 9, 2024
1 parent bab0bae commit 2f70d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pbjson-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ impl Builder {
self.emit_fields = true;
self
}
// print integers instead of enum names.

/// Print integers instead of enum names.
pub fn use_integers_for_enums(&mut self) -> &mut Self {
self.use_integers_for_enums = true;
self
Expand Down

0 comments on commit 2f70d30

Please sign in to comment.