Skip to content

Commit 1b629f5

Browse files
committed
Fix documentation on generated _hash methods for std::hash::Hash
1 parent 6715f52 commit 1b629f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ fn writeln_impl<W: std::io::Write>(w: &mut W, w_uses: &mut HashSet<String, NonRa
12891289

12901290
writeln!(w, " {{ true }} else {{ false }}\n}}").unwrap();
12911291
} else if path_matches_nongeneric(&trait_path.1, &["core", "hash", "Hash"]) {
1292-
writeln!(w, "/// Checks if two {}s contain equal inner contents.", ident).unwrap();
1292+
writeln!(w, "/// Generates a non-cryptographic 64-bit hash of the {}.", ident).unwrap();
12931293
write!(w, "#[no_mangle]\npub extern \"C\" fn {}_hash(o: &{}) -> u64 {{\n", ident, ident).unwrap();
12941294
if types.c_type_has_inner_from_path(&resolved_path) {
12951295
write!(w, "\tif o.inner.is_null() {{ return 0; }}\n").unwrap();

0 commit comments

Comments
 (0)