Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

space between / and pre breaks markdown #91

Merged
merged 1 commit into from
Dec 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/40-define-functions/100-define/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ theory: |

Not only the main function, but also showDate is described in the App class, so the showDate function is called by the App.showDate expression - but in fact if both functions are described in the same class as here, then one of them can call the other without class name indication: not App.showDate(), but just showDate().

<pre class = 'hexlet-basics-output'>Today is: December 5</ pre>
<pre class = 'hexlet-basics-output'>Today is: December 5</pre>

---

Expand All @@ -80,7 +80,7 @@ theory: |
}
```

<pre class = 'hexlet-basics-output'>Today is: January 29</ pre>
<pre class = 'hexlet-basics-output'>Today is: January 29</pre>

Now it is clear why we needed parentheses after the function name: *you can* specify the arguments in. Now our function takes one argument - `text`, which is of type String (this is the type in Java that matches the string of text).

Expand All @@ -105,7 +105,7 @@ theory: |
}
```

<pre class = 'hexlet-basics-output'>Today is: January 29</ pre>
<pre class = 'hexlet-basics-output'>Today is: January 29</pre>

The main thing is to remember about the order: in what order the arguments are in the definition of the function, in the same order they must be transmitted when calling.

Expand All @@ -125,7 +125,7 @@ instructions: |

so that we can call this function from another class, we need to mark it not only with the keyword static, but also public.

<pre class = 'hexlet-basics-output'>JAIME: Farewell, my friend ...</ pre>
<pre class = 'hexlet-basics-output'>JAIME: Farewell, my friend ...</pre>

# tips:
#  - |
Expand Down