Skip to content

capi docs: hyper_buf_copy() can return NULL, right? #2563

Closed
@bagder

Description

@bagder

The current comment for hyper_buf_copy in the header says:

/*
 Create a new `hyper_buf *` by copying the provided bytes.

 This makes an owned copy of the bytes, so the `buf` argument can be
 freed or changed afterwards.
*/

I think it would be helpful to users to mention that this can return NULL in cases of out of memory. Because it can return that then, can't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation.A-ffiArea: ffi (C API)E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions