Skip to content

Commit 46a55f1

Browse files
committed
Doc for top_versions function
1 parent e9b8edd commit 46a55f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/krate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ impl Crate {
398398
}
399399
}
400400

401+
/// Return both the newest (most recently updated) and
402+
/// highest version (in semver order) for the current crate.
401403
pub fn top_versions(&self, conn: &PgConnection) -> AppResult<TopVersions> {
402404
use crate::schema::versions::dsl::*;
403405

0 commit comments

Comments
 (0)