Skip to content

Commit 5513cc2

Browse files
committed
Minor Changes
1 parent 86d5ab6 commit 5513cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ With the correct implementation, LiquidJava will report an error in line 11 of [
222222

223223
### 5. Challenge
224224

225-
> Open [Downloader.java](./src/main/java/com/tutorial/part5/Downloader.java). Your task is to refine the `Downloader` class by replacing the `"true"` refinements with the appropriate ones to ensure the correct behavior of the `start`, `updateProgress`, `complete` and `getFile` methods, using the `progress` ghost variable to keep track of the download progress (from `0` to `100`), and not allow incorrect uses of these methods.
225+
> Open [Downloader.java](./src/main/java/com/tutorial/part5/Downloader.java). Your task is to refine the `Downloader` class by replacing the `"true"` refinements with the appropriate ones to ensure the correct behavior of the `start`, `updateProgress`, `complete` and `getFile` methods, using the `progress` ghost variable to keep track of the download progress (from `0` to `100`), and the `waiting`, `downloading` and `completed` states.
226226
227227
You will have to use most of the concepts learned throughout this tutorial, including refinement aliases, state refinements, and ghost variables. The following DFA illustrates the allowed state transitions:
228228

@@ -235,7 +235,7 @@ If you get stuck, here are some **hints**:
235235
- You should define that the new percentage value in the `updateProgress` method should always be greater than the current `progress` ghost variable value
236236
- The `getFile` method should only be called when the download is finished
237237

238-
With the correct implementation, LiquidJava should report an error in line 35, since we are trying to complete the download when the progress is not yet `100%`. Simply add a new line that updates the progress to `100` before calling the `complete` method to fix the error.
238+
With the correct implementation, LiquidJava should report an error in line 35, since we are trying to complete the download when the progress is not yet 100%. Simply add a new line that updates the progress to 100 before calling the `complete` method to fix the error.
239239

240240
---
241241

0 commit comments

Comments
 (0)