Skip to content

Commit a685585

Browse files
authored
Minor typos in YerushalmiYomiCalculator
Thanks to an anonymous developer for pointing these out.
1 parent a89e00e commit a685585

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class YerushalmiYomiCalculator {
3737
/** The number of pages in the Talmud Yerushalmi.*/
3838
private final static int WHOLE_SHAS_DAFS = 1554;
3939
/** The number of pages per <em>masechta</em> (tractate).*/
40-
private final static int[] BLATT_PER_MASSECTA = {
40+
private final static int[] BLATT_PER_MASECHTA = {
4141
68, 37, 34, 44, 31, 59, 26, 33, 28, 20, 13, 92, 65, 71, 22, 22, 42, 26, 26, 33, 34, 22,
4242
19, 85, 72, 47, 40, 47, 54, 48, 44, 37, 34, 44, 9, 57, 37, 19, 13};
4343

@@ -71,7 +71,7 @@ public static Daf getDafYomiYerushalmi(JewishCalendar calendar) {
7171

7272

7373
if (requested.before(DAF_YOMI_START_DAY)) {
74-
throw new IllegalArgumentException(requested + " is prior to organized Daf Yomi Yerushlmi cycles that started on "
74+
throw new IllegalArgumentException(requested + " is prior to organized Daf Yomi Yerushalmi cycles that started on "
7575
+ DAF_YOMI_START_DAY);
7676
}
7777

@@ -95,13 +95,13 @@ public static Daf getDafYomiYerushalmi(JewishCalendar calendar) {
9595
int total = dafNo - specialDays;
9696

9797
// Finally find the daf.
98-
for (int j = 0; j < BLATT_PER_MASSECTA.length; j++) {
98+
for (int j = 0; j < BLATT_PER_MASECHTA.length; j++) {
9999

100-
if (total < BLATT_PER_MASSECTA[j]) {
100+
if (total < BLATT_PER_MASECHTA[j]) {
101101
dafYomi = new Daf(masechta, total + 1);
102102
break;
103103
}
104-
total -= BLATT_PER_MASSECTA[j];
104+
total -= BLATT_PER_MASECHTA[j];
105105
masechta++;
106106
}
107107

0 commit comments

Comments
 (0)