Skip to content

docs: String(buffer:) needs to mention that it will always succeed#3476

Merged
Lukasa merged 1 commit intoapple:mainfrom
PhantomInTheWire:docs/byte-buffer
Jan 8, 2026
Merged

docs: String(buffer:) needs to mention that it will always succeed#3476
Lukasa merged 1 commit intoapple:mainfrom
PhantomInTheWire:docs/byte-buffer

Conversation

@PhantomInTheWire
Copy link
Copy Markdown
Contributor

Motivation:

The documentation for String(buffer:) initializer does not clearly indicate
that this operation will always succeed, which may leave developers uncertain
about error handling requirements.
fixes: #3449

Modifications:

Updated the documentation for String(buffer:) to explicitly mention that
the initialization will always succeed.

Result:

Developers will have clearer understanding that String(buffer:) is a safe
operation that does not require error handling.

Motivation:

The documentation for String(buffer:) initializer does not clearly indicate
that this operation will always succeed, which may leave developers uncertain
about error handling requirements.

Modifications:

Updated the documentation for String(buffer:) to explicitly mention that
the initialization will always succeed.

Result:

Developers will have clearer understanding that String(buffer:) is a safe
operation that does not require error handling.

Signed-off-by: Karan <karanlokchandani@protonmail.com>
Copy link
Copy Markdown
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@Lukasa Lukasa added the semver/none No version bump required. label Jan 8, 2026
@Lukasa Lukasa merged commit 4a9a971 into apple:main Jan 8, 2026
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: String(buffer:) needs to mention that it will always succeed

2 participants