Skip to content

Commit a8e2caa

Browse files
committed
Fix documentation discrepancies
1 parent 935046a commit a8e2caa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/com/cornellappdev/score/model/HighlightsRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HighlightsRepository @Inject constructor(
2424

2525

2626
/**
27-
* Asynchronously fetches the list of games from the API. Once finished, will send down
27+
* Asynchronously fetches the list of highlights from the API. Once finished, will send down
2828
* `upcomingGamesFlow` to be observed.
2929
*/
3030
fun fetchHighlights() = appScope.launch {

app/src/main/java/com/cornellappdev/score/util/DateUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ fun parseDateTimeOrNull(date: String, time: String): LocalDateTime? {
6969
}
7070

7171
/**
72-
* Parses an ISO-8601 timestamp: yyyy-MM-dd'T'HH:mm:ss'Z' into a LocalDateTime object.
72+
* Parses an ISO-8601 timestamp: yyyy-MM-dd'T'HH:mm:ss'Z' into a LocalDate? object.
7373
*
7474
* @param strDate the date string to parse, in the format "yyyy-MM-dd'T'HH:mm:ss'Z'"
75-
* @return a LocalDateTime object if parsing succeeds, or null if the format is invalid
75+
* @return a LocalDate object if parsing succeeds, or null if the format is invalid
7676
*/
7777
fun parseIsoDateToLocalDateOrNull(strDate: String): LocalDate? {
7878
return try {

0 commit comments

Comments
 (0)