1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

toml: fix a doc string (#13246)

This commit is contained in:
Larpon 2022-01-22 09:27:16 +01:00 committed by GitHub
parent 2b4f7e7685
commit 839ae6b2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ pub fn decode<T>(toml_txt string) ?T {
return typ
}
// encode encodes the type `T` into a JSON string.
// encode encodes the type `T` into a TOML string.
// Currently encode expects the method `.to_toml()` exists on `T`.
pub fn encode<T>(typ T) string {
return typ.to_toml()