Rock070
46060cf08f
Implement AppendBar trait for Vec<String>
2024-01-03 00:16:38 +08:00
Rock070
6d67fc122f
Implement AppendBar trait for String type
2024-01-02 23:56:12 +08:00
Rock070
7e523787e1
Refactor Wrapper struct to use generics
2024-01-02 23:47:45 +08:00
Rock070
344f62c9d3
Fix type annotation for shopping_list
2024-01-02 23:47:42 +08:00
Rock070
3136192b9b
Add error conversion function and handle parse errors in parse_pos_nonzero
2023-12-31 04:27:26 +08:00
Rock070
608ce4ffac
Update return type of main() to use Box<dyn Error>
2023-12-31 04:05:36 +08:00
Rock070
5a9c46b51e
Fix error handling in PositiveNonzeroInteger::new()
2023-12-31 04:02:19 +08:00
Rock070
dcd82188c3
Fix error handling in main function
2023-12-31 03:56:39 +08:00
Rock070
77fd6a3a1b
Refactor total_cost function to handle parsing errors
2023-12-31 03:45:53 +08:00
Rock070
844dff4902
Refactor generate_nametag_text to return a Result instead of an Option
2023-12-31 03:39:29 +08:00
Rock070
43f6907aa1
Fix match statement in options3.rs
2023-12-31 03:25:21 +08:00
Rock070
9e0f7510d9
Refactor options2.rs: Use if let and while let statements
2023-12-31 03:22:56 +08:00
Rock070
439778465d
Fix maybe_icecream function to handle time_of_day correctly
2023-12-31 03:17:45 +08:00
Rock070
b4cf7e4ef8
Fix visibility of make_sausage function
2023-12-31 02:35:15 +08:00
Rock070
9203b20a52
Refactor build_scores_table function to update goals scored and conceded
2023-12-30 18:25:07 +08:00
Rock070
b42cfb167d
Add new fruits to the basket if not already present
2023-12-30 17:15:50 +08:00
Rock070
551793f249
Add more fruits to the fruit basket
2023-12-30 17:04:03 +08:00
Rock070
b2b6dad75e
Refactor string functions
2023-12-30 16:52:54 +08:00
Rock070
13c442ec31
Fix string manipulation functions
2023-12-30 16:49:44 +08:00
Rock070
c0768cc4da
Fix function argument in strings2.rs
2023-12-30 16:49:41 +08:00
Rock070
27d1c37b1c
Fix current_favorite_color function to return a String
2023-12-30 12:13:20 +08:00
Rock070
23a2a21036
Fix if statement in if1.rs and implement message variants in enums3.rs
2023-12-30 12:12:00 +08:00
Rock070
cac63c180d
Add variants to Message enum
2023-12-23 11:47:10 +08:00
Rock070
73d43b3f90
Add message types to enum
2023-12-23 11:38:47 +08:00
Rock070
b480c57095
Refactor is_international and get_fees methods in Package struct
2023-12-23 11:38:04 +08:00
Rock070
aea00abd1c
Update order creation in structs2.rs
2023-12-23 11:31:19 +08:00
Rock070
853394ec14
Add color struct definitions and instantiate structs
2023-12-23 11:18:37 +08:00
Rock070
778452a921
Refactor function parameters in move_semantics6.rs
2023-12-17 16:37:19 +08:00
Rock070
1a956075a0
Refactor mutable borrowing in move_semantics5.rs
2023-12-17 16:25:54 +08:00
Rock070
d1a3ab5c54
Refactor fill_vec function to create and fill the Vec internally
2023-12-17 16:20:42 +08:00
Rock070
a898c058fc
Refactor fill_vec function to accept a mutable reference
2023-12-17 16:17:24 +08:00
Rock070
1c51ad049f
Refactor fill_vec function to take a mutable reference to vec
2023-12-17 16:00:15 +08:00
Rock070
4fd794e942
Refactor fill_vec to take a mutable reference to vec
2023-12-17 15:53:22 +08:00
Rock070
51775de8dc
Fix multiplication logic in vec_loop and vec_map functions
2023-12-17 15:42:04 +08:00
Rock070
294c97b9fc
Declare vector using macro in vecs1.rs
2023-12-17 00:06:16 +08:00
Rock070
86d4b548b7
Fix function signatures and logic
2023-12-17 00:03:00 +08:00
Rock070
8de470b723
Update call_me function to accept a parameter
2023-12-17 00:02:56 +08:00
Rock070
d417017f6c
Fix parameter type in call_me function
2023-12-17 00:02:51 +08:00
Rock070
33a8b24bc5
Add call_me function to print "Hello World!"
2023-12-17 00:02:42 +08:00
Rock070
fa29595ab2
Update variable initialization and type declaration
2023-12-15 02:09:11 +08:00
Rock070
30dbdbe55e
Update variable initialization in main function
2023-12-15 02:09:08 +08:00
Rock070
92ce842ad2
Fix variable assignment in main function
2023-12-15 01:59:56 +08:00
Rock070
b4779c5ea1
Fix printline to println in intro2.rs
2023-12-15 01:59:53 +08:00
Rock070
8fea9a43ab
Remove unfinished code in intro1.rs
2023-12-15 01:59:49 +08:00
Bastian Pedersen
3461c4f73d
Reword clippy1 exercise to be more readable
2023-11-12 11:39:14 +01:00
Tristram Oaten
2ac6606c6c
fix(intro2): changed intro2 to be a name error, not a format string error.
2023-10-20 17:31:56 +01:00
markgreene74
3545c5a7a4
fix(intro1.rs): typo in the exercise body
2023-10-16 22:53:21 +01:00
Adam Brewer
64d95837e9
Update Exercises Directory Names to Reflect Order
2023-10-16 07:37:12 -04:00
Matt Nield
642aac6f43
chore(errors2): minor description wording change
...
This commit makes a minor change in the wording of the description of the errors2 exercise to avoid potential confusion, changing:
"A player of the game will type in how many items they want to buy, and the `total_cost` function will calculate the total cost of the tokens."
to
"A player of the game will type in how many items they want to buy, and the `total_cost` function will calculate the total cost of the items."
2023-10-13 15:47:38 -04:00
Ofir Lauber
83ac243c00
chore: fix comment in enums3.rs
2023-09-21 01:54:11 +03:00