X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrmap%2Fstrmap.h;h=e85b8c8f898f599d9d292f8367d1dcf3d7468fdd;hp=77197507c742707a5c8ff3e3e41d36ad27d635c5;hb=ed1b25bbd01f79b5b333fd28b53455d2c91b831f;hpb=20f3b260313fb4d5566aeb0d0c5439574e914e2d diff --git a/ccan/strmap/strmap.h b/ccan/strmap/strmap.h index 77197507..e85b8c8f 100644 --- a/ccan/strmap/strmap.h +++ b/ccan/strmap/strmap.h @@ -94,8 +94,8 @@ void *strmap_get_(const struct strmap *map, const char *member); * @member: the string to place in the map. * @v: the (non-NULL) value. * - * This returns false if we run out of memory, or (more normally) if that - * string already appears in the map. + * This returns false if we run out of memory (errno = ENOMEM), or + * (more normally) if that string already appears in the map (EEXIST). * * Note that the pointer is placed in the map, the string is not copied. If * you want a copy in the map, use strdup(). Similarly for the value.