Skip to content

Commit 522bd86

Browse files
fix(curriculum): correct Challenge 229 truncate text instructions and Python hint (freeCodeCamp#66673)
1 parent a25d278 commit 522bd86

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

curriculum/challenges/english/blocks/daily-coding-challenges-javascript/69a890af247de743333bd4d2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The table above includes all upper and lower case letters. Additionally:
2424
- Periods (`"."`) have a width of 1
2525

2626
- If the given string is 50 units or less, return the string as-is, otherwise
27-
- Truncate the string and add three periods at the end (`"..."`) so it's total width, including the three periods, is as close as possible to 60 units without going over.
27+
- Truncate the string and add three periods at the end (`"..."`) so its total width, including the three periods, is as close as possible to 50 units without going over.
2828

2929
# --hints--
3030

curriculum/challenges/english/blocks/daily-coding-challenges-python/69a890af247de743333bd4d2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The table above includes all upper and lower case letters. Additionally:
2424
- Periods (`"."`) have a width of 1
2525

2626
- If the given string is 50 units or less, return the string as-is, otherwise
27-
- Truncate the string and add three periods at the end (`"..."`) so it's total width, including the three periods, is as close as possible to 60 units without going over.
27+
- Truncate the string and add three periods at the end (`"..."`) so its total width, including the three periods, is as close as possible to 50 units without going over.
2828

2929
# --hints--
3030

@@ -37,12 +37,12 @@ TestCase().assertEqual(truncate_text("The quick brown fox"), "The quick brown f.
3737
}})
3838
```
3939

40-
`truncate_text("The silky smooth sloth")` should return `truncate_text("The silky smooth sloth")`.
40+
`truncate_text("The silky smooth sloth")` should return `"The silky smooth s..."`.
4141

4242
```js
4343
({test: () => { runPython(`
4444
from unittest import TestCase
45-
TestCase().assertEqual(truncate_text("The silky smooth sloth"), truncate_text("The silky smooth sloth"))`)
45+
TestCase().assertEqual(truncate_text("The silky smooth sloth"), "The silky smooth s...")`)
4646
}})
4747
```
4848

0 commit comments

Comments
 (0)