1037 Commits

Author SHA1 Message Date
Leonardo Freua
f6c67371e8 Solve tests exercises 2021-10-13 17:26:29 -03:00
Leonardo Freua
d985ff36ac Merge branch 'main' of github.com:Leonardofreua/rustlings 2021-10-11 21:45:03 -03:00
Leonardo Freua
cd95afa824 Solve traits exercises 2021-10-11 21:44:34 -03:00
Leonardo Freua
4b4c1db220 Solve options exercises 2021-10-11 21:24:11 -03:00
Leonardo Freua
d84d32c196 Solve generics exercises. 2021-10-11 21:24:11 -03:00
Leonardo Freua
e370507709 Solve error handling exercises. 2021-10-11 21:24:11 -03:00
Leonardo Freua
846295d87e Solve quiz2. 2021-10-11 21:24:11 -03:00
Leonardo Freua
7c0ba9dd4e Solve quiz1. 2021-10-11 21:24:09 -03:00
Leonardo Freua
48f4ea1a66 Solve collection exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
5a400bd537 Solve enum exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
393a97cba1 Solve function exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
8c94196669 Solve struct exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
4225486f4f Solve modules exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
1d906f8d0a Solve if exercises. 2021-10-11 21:23:22 -03:00
Leonardo Freua
f2e63bb0c0 Solve move semantics exercises. 2021-10-11 21:23:17 -03:00
Leonardo Freua
6985a74098 Solve primitive types exercises. 2021-10-11 21:21:52 -03:00
Leonardo Freua
21a5bb921b Solve string exercises. 2021-10-11 21:21:52 -03:00
Leonardo Freua
2315a84f41 Solve variable exercises. 2021-10-11 21:21:52 -03:00
Leonardo Freua
949a7b32d5 Solve options exercises 2021-10-07 00:14:18 -03:00
diannasoriel
af91eb508a
Merge pull request #860 from rlch/spelling-mistakes
fix: few spelling mistakes
2021-10-02 23:09:52 +02:00
rlch
1c0fe3cbcc fix: few spelling mistakes 2021-10-02 23:59:23 +10:00
diannasoriel
ed7fe883b9
Merge pull request #858 from rust-lang/all-contributors/add-fredr
docs: add fredr as a contributor for content
2021-09-30 10:19:33 +02:00
allcontributors[bot]
ae54c17b6a
docs: update .all-contributorsrc [skip ci] 2021-09-30 08:18:53 +00:00
allcontributors[bot]
574bbffe0b
docs: update README.md [skip ci] 2021-09-30 08:18:52 +00:00
Fredrik Enestad
46c28d5cef
fix(move_semantics5): correct typo (#857) 2021-09-30 10:18:36 +02:00
Leonardo Freua
0cee1913c6 Solve generics exercises. 2021-09-29 22:34:02 -03:00
diannasoriel
ad338ee789
Merge pull request #853 from rust-lang/all-contributors/add-EmisonLu
docs: add EmisonLu as a contributor for content
2021-09-27 10:03:57 +02:00
allcontributors[bot]
e3cfaa246d
docs: update .all-contributorsrc [skip ci] 2021-09-27 08:03:47 +00:00
allcontributors[bot]
fed4fe78bb
docs: update README.md [skip ci] 2021-09-27 08:03:46 +00:00
Zhenghao Lu
bf33829da2
fix(structs3): remove redundant 'return' (#852) 2021-09-27 10:03:28 +02:00
ana
d57c183028 release: 4.6.0 4.6.0 2021-09-25 11:23:05 +02:00
diannasoriel
c2ed98deb3
Merge pull request #781 from tlyu/advanced-errs
feature: advanced errors
2021-09-25 11:18:55 +02:00
Taylor Yu
abd6b70c72 feat: add advanced_errs2
New exercise to demonstrate traits that make it easier for other code
to consume our custom error types.
2021-09-25 11:18:23 +02:00
Taylor Yu
882d535ba8 feat: add advanced_errs1
New section and exercise to demonstrate the `From` trait for errors
and its usefulness with the `?` operator.
2021-09-25 11:18:21 +02:00
diannasoriel
0de45ccdb7
Merge pull request #851 from rust-lang/all-contributors/add-frogtd
docs: add frogtd as a contributor for content
2021-09-25 10:53:13 +02:00
allcontributors[bot]
ab5ecbee7a
docs: update .all-contributorsrc [skip ci] 2021-09-25 08:53:05 +00:00
allcontributors[bot]
e106d7a4f4
docs: update README.md [skip ci] 2021-09-25 08:53:04 +00:00
frogtd
d75759e829
fix(move_semantics5): change &mut *y to &mut x (#814)
Instead of having to explain why 
```rs
let mut x = 100; 
let y = &mut x;
let mut z_owned = *y;
let z = &mut z_owned;
*y += 100;
*z += 1000;
```
and 
```rs
let mut x = 100; 
let y = &mut x;
let z = &mut *y;
*y += 100;
*z += 1000;
```
are different, you still get the point across about having only one mutable reference.
As it stands, this exercise does too much (dereferencing and having only one mutable reference), and by doing so confuses people.

Example of someone being confused by this:
<https://discord.com/channels/273534239310479360/273541522815713281/872689531428692040>
2021-09-25 10:52:18 +02:00
diannasoriel
db9d7a907d
Merge pull request #850 from rust-lang/all-contributors/add-abusch
docs: add abusch as a contributor for code
2021-09-25 10:48:04 +02:00
allcontributors[bot]
a1b9c50f36
docs: update .all-contributorsrc [skip ci] 2021-09-25 08:47:56 +00:00
allcontributors[bot]
c4b59aa593
docs: update README.md [skip ci] 2021-09-25 08:47:55 +00:00
diannasoriel
4a18bdeefe
Merge pull request #843 from abusch/quit_command
feat: Add "quit" command to `rustlings watch`
2021-09-25 10:47:36 +02:00
Antoine Busch
1caef0b434 feat: Add "quit" command to rustlings watch
closes: #842
2021-09-24 23:55:55 +10:00
diannasoriel
ae56cba9c8
Merge pull request #846 from rust-lang/feat/add-more-watch-commands
feat: add more watch commands
2021-09-24 13:05:04 +02:00
ana
3352b5a4d3 chore: improve println! usage 2021-09-24 13:04:30 +02:00
diannasoriel
24762434ff
Merge pull request #849 from rust-lang/all-contributors/add-Millione
docs: add Millione as a contributor for content
2021-09-21 11:50:41 +02:00
allcontributors[bot]
e9c0ca6be2
docs: update .all-contributorsrc [skip ci] 2021-09-21 09:50:32 +00:00
allcontributors[bot]
9ef63c0b9b
docs: update README.md [skip ci] 2021-09-21 09:50:31 +00:00
LIU JIE
06d5c0973a
fix(cli): typo in exercise.rs (#848) 2021-09-21 11:50:15 +02:00
diannasoriel
8d82856233
Merge pull request #847 from rust-lang/all-contributors/add-Weilet
docs: add Weilet as a contributor for content
2021-09-21 10:44:15 +02:00