From 5727d06f43e7b2e25ad8fb458c5113015c24dce8 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+tobealive@users.noreply.github.com> Date: Sun, 16 Apr 2023 23:07:47 +0200 Subject: [PATCH] improve comment phrasing --- vlib/toml/toml.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/toml/toml.v b/vlib/toml/toml.v index 34ce82322e..30ddff9bde 100644 --- a/vlib/toml/toml.v +++ b/vlib/toml/toml.v @@ -14,7 +14,7 @@ pub struct Null { } // decode decodes a TOML `string` into the target type `T`. -// `T` can have a custom `.from_toml()` method to be used for decoding. +// `T` can have a custom `.from_toml()` method that will be used in decode. pub fn decode[T](toml_txt string) !T { doc := parse_text(toml_txt)! mut typ := T{} @@ -50,7 +50,7 @@ pub fn decode[T](toml_txt string) !T { } // encode encodes the type `T` into a TOML string. -// `T` can have a custom `.to_toml()` method to be used for decoding. +// `T` can have a custom `.to_toml()` method that will be used in encode. pub fn encode[T](typ T) string { $for method in T.methods { $if method.name == 'to_toml' {