toml: fix a doc string (#13246)
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