Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso authored Feb 16, 2024
1 parent f6b671d commit ae72433
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion collections/motoko/src/ZhenyaHashmap.mo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Prim "mo:prim";
actor {
stable let profiling = Profiling.init();

let public func hashNat64(key: Nat64): Nat32 {
hashNat64(key: Nat64): Nat32 {
Prim.nat64ToNat32(key & 0x0fff_ffff);
};

Expand Down
1 change: 0 additions & 1 deletion collections/motoko/src/hashmap.mo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Profiling "../../../utils/motoko/Profiling";

actor {
stable let profiling = Profiling.init();

func hash(x: Nat64) : Nat32 = Hash.hash(Nat64.toNat x);
var map = HashMap.HashMap<Nat64, Nat64>(0, Nat64.equal, hash);
stable var stableMap: [(Nat64, Nat64)] = [];
Expand Down

0 comments on commit ae72433

Please sign in to comment.