From 9817dfc5ba33629b82942db69ce9d9d385661b1f Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:22:15 +0100 Subject: [PATCH] net.html: fix doc comments for html.parse functions (#20109) --- vlib/net/html/html.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/net/html/html.v b/vlib/net/html/html.v index 4a101f105..7af628a14 100644 --- a/vlib/net/html/html.v +++ b/vlib/net/html/html.v @@ -3,8 +3,8 @@ module html import os // parse parses and returns the DOM from the given text. -// Note: this function will parse all tags to lowercase. -// E.g. content is converted to content +// Note: this function converts tags to lowercase. +// E.g. content is parsed as content. pub fn parse(text string) DocumentObjectModel { mut parser := Parser{} parser.parse_html(text) @@ -12,8 +12,8 @@ pub fn parse(text string) DocumentObjectModel { } // parse_file parses and returns the DOM from the contents of a file. -// Note: this function will parse all tags to lowercase. -// E.g. content is converted to content +// Note: this function converts tags to lowercase. +// E.g. content is parsed as content. pub fn parse_file(filename string) DocumentObjectModel { content := os.read_file(filename) or { return DocumentObjectModel{ root: &Tag{} -- 2.39.5