toml: fix a doc string (#13246)

pull/13248/head
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
1 changed files with 1 additions and 1 deletions

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()