fix minor bugs in hash_key.h and streams.h docs docs/3.1

Sat, 25 Jan 2025 14:05:35 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 25 Jan 2025 14:05:35 +0100
branch
docs/3.1
changeset 1147
52802c36b261
parent 1146
151c057faf7c
child 1148
8ff82697f2c3

fix minor bugs in hash_key.h and streams.h docs

relates to #451

docs/Writerside/topics/hash_key.h.md file | annotate | diff | comparison | revisions
docs/Writerside/topics/streams.h.md file | annotate | diff | comparison | revisions
--- a/docs/Writerside/topics/hash_key.h.md	Sat Jan 25 13:44:24 2025 +0100
+++ b/docs/Writerside/topics/hash_key.h.md	Sat Jan 25 14:05:35 2025 +0100
@@ -20,7 +20,7 @@
 The other functions do effectively the same, but
 
 * `cx_hash_key_bytes()` is strongly typed if you want to avoid passing `void*` 
-* `cx_hash_key_str()` conveniently takes a C string and computes the length on its own
+* `cx_hash_key_str()` conveniently takes a C string and computes the length
 * `cx_hash_key_cxstr()` conveniently takes a [UCX string](string.h.md)
 
 In all cases, the hash will be available in the `hash` field of the returned structure.
--- a/docs/Writerside/topics/streams.h.md	Sat Jan 25 13:44:24 2025 +0100
+++ b/docs/Writerside/topics/streams.h.md	Sat Jan 25 14:05:35 2025 +0100
@@ -78,9 +78,6 @@
     cxBufferDestroy(&fbuf);
 } else {
     perror("Error opening input file");
-    if (fout != stdout) {
-        fclose(fout);
-    }
 }
 ```
 

mercurial