mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
fix misleading comment
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -315,7 +315,7 @@ pub const Cookie = struct {
|
|||||||
const ValidateCookieError = error{ Empty, InvalidByteSequence };
|
const ValidateCookieError = error{ Empty, InvalidByteSequence };
|
||||||
|
|
||||||
/// Returns an error if cookie str length is 0
|
/// Returns an error if cookie str length is 0
|
||||||
/// or contains characters between 32...126.
|
/// or contains characters outside of the ascii range 32...126.
|
||||||
fn validateCookieString(str: []const u8) ValidateCookieError!void {
|
fn validateCookieString(str: []const u8) ValidateCookieError!void {
|
||||||
if (str.len == 0) {
|
if (str.len == 0) {
|
||||||
return error.Empty;
|
return error.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user