Skip to content

Commit 1058fc2

Browse files
committed
Doc for top_versions function
1 parent f4b967e commit 1058fc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/krate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ impl Crate {
396396
}
397397
}
398398

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

0 commit comments

Comments
 (0)