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

Added run icon to hello world task and specified resolver version for the whole course #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ members = [
exclude = [
"**/*.yaml"
]

resolver = "2"
4 changes: 4 additions & 0 deletions Introduction/Getting started/Hello World/images/run.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions Introduction/Getting started/Hello World/images/run_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 15 additions & 11 deletions Introduction/Getting started/Hello World/task-info.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
type: edu
custom_name: "Task: Hello World"
files:
- name: src/main.rs
visible: true
placeholders:
- offset: 16
length: 26
placeholder_text: // put your code here to launch it
- name: Cargo.toml
visible: false
- name: tests/tests.rs
visible: false
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLSdfJQgjsbDA4pPGpklj3vJnKNspd9wmEHzAgh6EkoJy2IiRuw/viewform?usp=pp_url&entry.2103429047=Introduction+/+Getting+started+/+Hello+World
- name: src/main.rs
visible: true
placeholders:
- offset: 16
length: 26
placeholder_text: // put your code here to launch it
- name: Cargo.toml
visible: false
- name: tests/tests.rs
visible: false
- name: images/run_dark.svg
visible: false
- name: images/run.svg
visible: false
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLSdfJQgjsbDA4pPGpklj3vJnKNspd9wmEHzAgh6EkoJy2IiRuw/viewform?usp=pp_url&entry.2103429047=Introduction+/+Getting+started+/+Hello+World
10 changes: 8 additions & 2 deletions Introduction/Getting started/Hello World/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Now let's replace the line inside the main function with the code:
```
##### Example: A program that prints Hello, world!

To run this code click on **Run** icon at the left-upper corner of the editor. Click **Check** button in the **Task Description** window to run the tests checking the correctness of the solution provided.
To run this code click on **Run** icon (![](images/run.svg)) at the left-upper corner of the editor. Click **Check** button in the **Task Description** window to run the tests checking the correctness of the solution provided.

If `Hello, world!` did print, congratulations! You’ve officially written a Rust program. That makes you a Rust programmer—welcome!

Expand Down Expand Up @@ -52,4 +52,10 @@ Third, you see the `"Hello, world!"` string. We pass this string as an argument

Fourth, we end the line with a semicolon (`;`), which indicates that this expression is over and the next one is ready to begin. Most lines of Rust code end with a semicolon.

_You can refer to the following chapter in the Rust Programming Language book: [Hello, World!](https://doc.rust-lang.org/stable/book/ch01-02-hello-world.html)_
_You can refer to the following chapter in the Rust Programming Language book: [Hello, World!](https://doc.rust-lang.org/stable/book/ch01-02-hello-world.html)_

<style>
img {
display: inline !important;
}
</style>