1
0

Fixed a comment for GetArticleMetadata() func. It is actually is being sorted by ID, not data.

This commit is contained in:
Alexander Andreev 2023-09-23 04:25:32 +04:00
parent fbb4389065
commit ff70cd8ade
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -28,7 +28,7 @@ type ArticleMetadata struct {
URL string
}
// GetArticleMetadata returns a slice of metadata that is sorted by date
// GetArticleMetadata returns a slice of metadata that is sorted by ID
func GetArticleMetadata() (meta []ArticleMetadata) {
for urlid, article := range articles {