Skip to content

Commit 7f2f18e

Browse files
committed
More docs
1 parent 2370f97 commit 7f2f18e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

database/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,12 @@ pub enum Label {
378378
Query(QueryLabel),
379379
}
380380

381+
/// An identifier for a built version of the compiler
381382
#[derive(Deserialize, Serialize, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
382383
pub enum ArtifactId {
384+
/// A built version of the compiler at an exact commit
383385
Commit(Commit),
386+
/// A symbolic tag for a built compiler like "1.51.0"
384387
Artifact(String),
385388
}
386389

site/src/selector.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ use std::fmt;
3333
use std::ops::RangeInclusive;
3434
use std::sync::Arc;
3535

36-
/// Gets an artifact id for the given bound
36+
/// Finds the most appropriate `ArtifactId` for a given bound.
3737
///
38-
/// Searches in the indexed commits either from the right or left
39-
/// If not found in the indexed commits, searches through the artifacts cache
38+
/// Searches the commits in the index either from the left or the right.
39+
/// If not found in those commits, searches through the artifacts in the index.
4040
pub fn data_for(data: &Index, is_left: bool, bound: Bound) -> Option<ArtifactId> {
4141
let commits = data.commits();
4242
let commit = if is_left {

0 commit comments

Comments
 (0)