GNOME Bugzilla – Bug 630284
g_hash_table_get_keys docs
Last modified: 2013-03-18 03:30:32 UTC
The docs for g_hash_table_get_keys say "The returned data is valid until @hash_table is modified." That's true, but far more restrictive that it needs to be. This is closer: "The returned data is valid until changes to the hash release those keys." In particular, if the hash has no key destructor (directly or by way of a value destructor) then the keys are valid even after the entire hash is destroyed. The hash table simply does not own the keys in that case.
Created attachment 171025 [details] [review] Be more explicit about g_hash_table_get_keys semantics I think it is good to use conservative wording in principle, but maybe it is helpful to elaborate these semantics in a separate sentence.
Looks ok to me
IHMO using "may" just makes it _less_ clear. If it's guaranteed, you should say "will" instead.