Skip to content

Commit 7469ba5

Browse files
committed
improve URL parse docstring
1 parent ff54260 commit 7469ba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/ws_client/URL.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ class URL
118118

119119
/**
120120
* Parses the passed URL string into a `URL` object.
121-
* Use this method to create a `URL` object from a string.
122-
* The constructor is private, so this is the only way to create a `URL` object
123-
* in order to be able to return an error if the URL is invalid.
121+
* Use this method to create a `URL` object from a `string_view`.
122+
* The constructor is private, so this is the only way to create an `URL` object
123+
* in order to return an error if the URL is invalid without using exceptions.
124124
*/
125125
[[nodiscard]] static expected<URL, WSError> parse(string_view url) noexcept
126126
{

0 commit comments

Comments
 (0)