Skip to content

Commit

Permalink
fix(gtest): Remove useless brackets (#3783)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf authored Mar 6, 2024
1 parent 3135f83 commit 4798d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtest/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ impl<'a> Program<'a> {
/// # use gtest::{state_args, Program, System, WasmProgram, Result};
/// # fn doctest() -> Result<()> {
/// # #[derive(Debug)]
/// # struct MockWasm {}
/// # struct MockWasm;
/// #
/// # impl WasmProgram for MockWasm {
/// # fn init(&mut self, _payload: Vec<u8>) -> Result<Option<Vec<u8>>, &'static str> { unimplemented!() }
Expand All @@ -708,7 +708,7 @@ impl<'a> Program<'a> {
/// # fn state(&mut self) -> Result<Vec<u8>, &'static str> { unimplemented!() }
/// # }
/// # let system = System::new();
/// # let program = Program::mock(&system, MockWasm { });
/// # let program = Program::mock(&system, MockWasm);
/// # let ARG_1 = 0u8;
/// # let ARG_2 = 0u8;
/// //Read state bytes with no arguments passed to wasm.
Expand Down

0 comments on commit 4798d00

Please sign in to comment.