Skip to content

Commit

Permalink
docs(Export): fix example code
Browse files Browse the repository at this point in the history
the repr part should be added to change the serialization behavior.
  • Loading branch information
Bogay committed Oct 11, 2023
1 parent c33e89b commit 825ad68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gdnative-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,8 @@ pub fn godot_wrap_method(input: TokenStream) -> TokenStream {
/// use gdnative::prelude::*;
///
/// #[derive(Debug, PartialEq, Clone, Copy, Export, ToVariant, FromVariant)]
/// #[variant(enum = "repr")]
/// #[repr(i32)]
/// enum Dir {
/// Up = 1,
/// Down = -1,
Expand Down

0 comments on commit 825ad68

Please sign in to comment.