Commit Graph

1188 Commits (3e7e65b9f0e6e9a2f8ddd55f8403a5e3c2c852da)
 

Author SHA1 Message Date
radicale 71a06044e6
fix(clippy1): Set clippy::float_cmp lint to deny (#907) 3 years ago
diannasoreil 5002c54ffb
Merge pull request #901 from rust-lang/all-contributors/add-tan-zx
docs: add tan-zx as a contributor for content
3 years ago
allcontributors[bot] 17e3e75331
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] af84359bdb
docs: update README.md [skip ci] 3 years ago
diannasoreil 74739261d6
Merge pull request #899 from tan-zx/quiz1/comments
fix(quiz1): update to say quiz covers "If"
3 years ago
ZX 1622e8c198
fix(quiz1): update to say quiz covers "If" 3 years ago
diannasoreil e06ba1df58
Merge pull request #896 from rust-lang/all-contributors/add-nekonako
docs: add nekonako as a contributor for code
3 years ago
allcontributors[bot] 7dce8c8b61
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] f61f9f3796
docs: update README.md [skip ci] 3 years ago
diannasoreil 6516a89485
Merge pull request #894 from nekonako/main
chore : replace filter_map() with find_map()
3 years ago
Galih wisnuaji 9b27e8d993 chore : replace filter_map() with find_map() 3 years ago
diannasoreil f7719a4a9c
Merge pull request #891 from rust-lang/all-contributors/add-frvannes16
docs: add frvannes16 as a contributor for code
3 years ago
allcontributors[bot] 81fb396780
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] 8d675198d8
docs: update README.md [skip ci] 3 years ago
diannasoreil 969384c258
Merge pull request #890 from frvannes16/fix/888-std-floats
fix(clippy1): Trigger approx_constant lint rule instead of downgraded float_cmp.
3 years ago
Franklin van Nes f2650de369 fix(clippy1): Updated code to test correctness clippy lint with approx_constant lint rule
closes #888
3 years ago
diannasoreil acaee79994
Merge pull request #889 from rust-lang/all-contributors/add-alirezaghey
docs: add alirezaghey as a contributor for content
3 years ago
allcontributors[bot] 527a5b1182
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] 72b2c9f54f
docs: update README.md [skip ci] 3 years ago
alirezaghey 8ef4869b26
fix(functions5): Remove wrong new line and small English improvements (#885) 3 years ago
diannasoreil dba759e1c6
Merge pull request #872 from rust-lang/all-contributors/add-MpdWalsh
docs: add MpdWalsh as a contributor for code
3 years ago
allcontributors[bot] cb661896a2
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] e08b6cf3ef
docs: update README.md [skip ci] 3 years ago
diannasoreil e2fa512e86
Merge pull request #871 from MpdWalsh/main
fix(structs3.rs): assigned value to cents_per_gram in test
3 years ago
Michael Walsh d1ee2daf14 fix(structs3.rs): assigned value to cents_per_gram in test
Intended to simplify the lesson by removing the need to figure out what the value is meant to be based on the tests.

Previous commits (9ca08b8f2b and 114b54cbdb (diff-ce1c232ff0ddaff909351bb84cb5bff423b5b9e04f21fd4db7ffe443e598e174)) removed the mathematical complexity, and I feel this addition is a needed change to further streamline the exercise.
3 years ago
ana 359f81dd0b chore: upgrade edition to 2021 3 years ago
diannasoriel 5e5271247a
Merge pull request #866 from rust-lang/all-contributors/add-xuesongbj
docs: add xuesongbj as a contributor for content
3 years ago
allcontributors[bot] 71da9068e7
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] b24b295d88
docs: update README.md [skip ci] 3 years ago
xuesong 1663a16ead
fix(traits1): rename test functions to snake case (#854)
Co-authored-by: zhangshaozhi <zhangshaozhi@ZhangshaozhideMacBook-Pro.local>
3 years ago
diannasoriel af91eb508a
Merge pull request #860 from rlch/spelling-mistakes
fix: few spelling mistakes
3 years ago
rlch 1c0fe3cbcc fix: few spelling mistakes 3 years ago
diannasoriel ed7fe883b9
Merge pull request #858 from rust-lang/all-contributors/add-fredr
docs: add fredr as a contributor for content
3 years ago
allcontributors[bot] ae54c17b6a
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] 574bbffe0b
docs: update README.md [skip ci] 3 years ago
Fredrik Enestad 46c28d5cef
fix(move_semantics5): correct typo (#857) 3 years ago
diannasoriel ad338ee789
Merge pull request #853 from rust-lang/all-contributors/add-EmisonLu
docs: add EmisonLu as a contributor for content
3 years ago
allcontributors[bot] e3cfaa246d
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] fed4fe78bb
docs: update README.md [skip ci] 3 years ago
Zhenghao Lu bf33829da2
fix(structs3): remove redundant 'return' (#852) 3 years ago
ana d57c183028 release: 4.6.0 3 years ago
diannasoriel c2ed98deb3
Merge pull request #781 from tlyu/advanced-errs
feature: advanced errors
3 years ago
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.
3 years ago
Taylor Yu 882d535ba8 feat: add advanced_errs1
New section and exercise to demonstrate the `From` trait for errors
and its usefulness with the `?` operator.
3 years ago
diannasoriel 0de45ccdb7
Merge pull request #851 from rust-lang/all-contributors/add-frogtd
docs: add frogtd as a contributor for content
3 years ago
allcontributors[bot] ab5ecbee7a
docs: update .all-contributorsrc [skip ci] 3 years ago
allcontributors[bot] e106d7a4f4
docs: update README.md [skip ci] 3 years ago
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>
3 years ago
diannasoriel db9d7a907d
Merge pull request #850 from rust-lang/all-contributors/add-abusch
docs: add abusch as a contributor for code
3 years ago
allcontributors[bot] a1b9c50f36
docs: update .all-contributorsrc [skip ci] 3 years ago