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:
parent
2b4f7e7685
commit
839ae6b2e4
@ -20,7 +20,7 @@ pub fn decode<T>(toml_txt string) ?T {
|
|||||||
return typ
|
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`.
|
// Currently encode expects the method `.to_toml()` exists on `T`.
|
||||||
pub fn encode<T>(typ T) string {
|
pub fn encode<T>(typ T) string {
|
||||||
return typ.to_toml()
|
return typ.to_toml()
|
||||||
|
Loading…
Reference in New Issue
Block a user