Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix useless use of vec! compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Oct 10, 2023
1 parent 5659d5f commit 2462780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion families/battleship/src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn get_battleship_name_hash(name: &str) -> String {

/// Get a state address for a given game of battleship
pub fn get_battleship_address(name: &str) -> String {
vec![get_battleship_prefix(), get_battleship_name_hash(name)].join("")
[get_battleship_prefix(), get_battleship_name_hash(name)].join("")
}

/// Hash the value and nonce for a revealed space
Expand Down

0 comments on commit 2462780

Please sign in to comment.