Fixed a comment for GetArticleMetadata() func. It is actually is being sorted by ID, not data.
This commit is contained in:
parent
fbb4389065
commit
ff70cd8ade
@ -28,7 +28,7 @@ type ArticleMetadata struct {
|
|||||||
URL string
|
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) {
|
func GetArticleMetadata() (meta []ArticleMetadata) {
|
||||||
for urlid, article := range articles {
|
for urlid, article := range articles {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user