Commit graph

173 commits

Author SHA1 Message Date
Daniel Wagner-Hall
2e2f6b945d Re-order actions you can take with a Result
It's generally better practice to handle or propagate errors, rather
than panicking in response to them. This edit moves panicking to be the
_last_ option introduced, rather than the first. It also adds caveats to
avoid doing so, and explicitly mentions propagating as something to
consider.
2024-10-31 13:48:46 +00:00
Henk Oordt
9e63a5cdf6
Merge pull request #190 from Manubi/patch-1
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
2024-10-29 15:48:35 +01:00
Manuel Bichler
f4a7472f30
Update 08_overflow.md
Added some context.
2024-10-29 15:40:56 +01:00
Henk Oordt
04b89ff26e
Merge pull request #188 from cenviity/push-usrtukunqysw
exercises 02_basic_calculator/04_panics: fix comma splice in panic message
2024-10-29 14:39:03 +01:00
Henk Oordt
26e78072cd
Merge pull request #187 from half2me/patch-1
Fix docstring: "when converted to `u8`"
2024-10-29 14:30:20 +01:00
Henk Oordt
c540242c15
Merge pull request #172 from marcoow/fix-fork-build
Fix builds for PRs originating from forks
2024-10-29 14:16:29 +01:00
Henk Oordt
12fb62d8be
Merge pull request #192 from mainmatter/ci-schedule
Some checks are pending
CI / build (push) Waiting to run
CI / is_fresh (push) Waiting to run
CI / formatter (push) Waiting to run
chore(ci): re-create book artifacts at the beginning of each month
2024-10-28 13:33:42 +01:00
Bartlomiej Dudzik
0bf398a351
chore(ci): re-create book artifacts at the beginning of each month 2024-10-28 13:19:50 +01:00
Manuel Bichler
f14a047e8b
Update 08_overflow.md
if you read threw the profile docs it provides 4 profiles. https://doc.rust-lang.org/cargo/reference/profiles.html
2024-10-27 19:32:58 +01:00
Vincent Ging Ho Yim
5e23bee61e exercises 02_basic_calculator/04_panics: fix comma splice in panic message 2024-10-24 15:18:53 +11:00
Benjamin Tamasi
8488317564
Change docstring: "when converted to u8"
Fixed docstring
2024-10-22 13:39:17 +02:00
Henk Oordt
bd17a59e8e
Merge pull request #177 from LucaBoschetto/patch-1
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
Update reference from Rustonomicon to Rust Reference
2024-10-21 13:27:25 +02:00
Henk Oordt
8c3e40033b
Merge pull request #174 from drguildo/channels-typo-fix
Fix typo
2024-10-21 13:24:04 +02:00
iacri
a392371ef0
05_ticket_v2 outro: correct comment on title (#179)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
Characters was meant to be bytes, this was missed in a former refactoring
2024-10-19 09:36:26 +02:00
Luca Boschetto
f4cb4b55d0
Update reference from Rustonomicon to Rust Reference
The exercise refers to the "Data layout" section of the Rustonomicon, but now that section claims itself deprecated and redirects to the "Type layout" section of The Rust Reference.
2024-10-16 18:15:59 +02:00
Simon Morgan
45c32d8e41 Fix typo 2024-10-14 22:41:16 +01:00
Marco Otte-Witte
4ca49fa5fd
use OpenSans as fallback font on PRs from forks 2024-10-14 12:56:17 +02:00
Adalfarus
c437f75fcf
Update lib.rs, added info that needed panic messages can be found in the tests. (#157)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
2024-10-09 09:44:47 +02:00
Marco Otte-Witte
f839fc00f9
Merge pull request #161 from mainmatter/cover-for-pdf
Some checks are pending
CI / build (push) Waiting to run
CI / is_fresh (push) Waiting to run
CI / formatter (push) Waiting to run
add cover and back to downloadable pdf
2024-10-08 11:22:45 +02:00
Marco Otte-Witte
954dd0ff14
add real back and front cover 2024-10-08 11:11:20 +02:00
Marco Otte-Witte
33bcaf0a7a
add cover and back to downloadable pdf 2024-10-02 16:00:32 +02:00
Marco Otte-Witte
0aecb5380e
Merge pull request #159 from mainmatter/style-ebook
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
simplify ebook styling
2024-10-02 15:40:46 +02:00
Marco Otte-Witte
276bdbbcdc
simplify ebook styling config 2024-10-02 15:30:40 +02:00
Remo Senekowitsch
a899ecec96
Fix typo (#160) 2024-10-02 15:20:17 +02:00
Luca Palmieri
a0537f8c51 chore: Shorten links
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
2024-09-27 14:47:00 +02:00
Luca Palmieri
73649001ba
Add link to paperback. 2024-09-27 10:13:15 +02:00
David Parra
99ee4b27c5
Typo (#154)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
Thanks for such a great book, found a small typo.
2024-09-22 08:12:14 +02:00
Marco Otte-Witte
af6c605fe6
Merge pull request #133 from mainmatter/style-book
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
Style book
2024-09-19 11:47:52 +02:00
Marco Otte-Witte
f613c9a58b
Merge pull request #150 from mainmatter/LukeMathWalker-patch-1
Don't omit macros from PDF and ePUB versions
2024-09-19 11:40:52 +02:00
Luca Palmieri
e9c4f37130
Don't omit macros from PDF and ePUB versions 2024-09-19 10:33:03 +02:00
Abdelrahman Omar
e768d9dbd8
add test coverage for IndexMut<&TicketId> (#142)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
2024-09-11 11:37:23 +02:00
Tobias Hermann
ea71ac2c0a
Remove duplicated mention of slices in 00_intro.md (#144)
Slices are already mentioned in bullet point 4, so they can be removed from bullet point 2.
2024-09-11 11:36:58 +02:00
Marco Otte-Witte
0ca42ba058
move comment to meaningful place 2024-08-27 09:14:20 +02:00
Marco Otte-Witte
681903a853
make fontsize 1pt smaller 2024-08-27 09:13:38 +02:00
Marco Otte-Witte
6bdcf19f5f
use less teal for sh theme 2024-08-22 15:43:19 +02:00
Marco Otte-Witte
297d78d750
actually use custom highlighting theme 2024-08-22 15:38:18 +02:00
Marco Otte-Witte
cab4de6433
remove background color on operators 2024-08-22 15:25:58 +02:00
Marco Otte-Witte
52c21a241d
add lost settings for print version back in 2024-08-22 15:22:03 +02:00
Marco Otte-Witte
982a8f0789
copy config to paperback 2024-08-20 18:26:26 +02:00
Marco Otte-Witte
1b050774e7
custom syntax highlighting 2024-08-20 18:26:26 +02:00
Marco Otte-Witte
d269320825
set link and url styles 2024-08-20 18:26:26 +02:00
Marco Otte-Witte
8730a8458a
use Core Sans font 2024-08-20 18:26:26 +02:00
Henk Oordt
97d13e5c85
Merge pull request #131 from ehershey/grammar
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
Grammar fixups
2024-08-14 09:38:27 +02:00
Ernie Hershey
d5918375f3
Grammar fixups 2024-08-13 11:41:40 -04:00
Luca Palmieri
fb8f83a518
Add ePUB format (#130)
Some checks are pending
CI / build (push) Waiting to run
CI / is_fresh (push) Waiting to run
CI / formatter (push) Waiting to run
2024-08-13 15:53:43 +02:00
LukeMathWalker
f9a1d427b2 Adjust margins for paperback version. Ensure nothing breaches the right margin.
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
2024-08-07 15:39:35 +02:00
LukeMathWalker
05e3efd298 redirects -> _redirects
Some checks are pending
CI / build (push) Waiting to run
CI / is_fresh (push) Waiting to run
CI / formatter (push) Waiting to run
2024-08-06 17:34:08 +02:00
Luca Palmieri
c9ed60daf5
Add print-ready PDF (#127) 2024-08-06 17:09:04 +02:00
LukeMathWalker
0910f3909f Add formats.
Some checks are pending
CI / build (push) Waiting to run
CI / formatter (push) Waiting to run
2024-08-06 10:31:06 +02:00
mckzm
2765fdaa0e
Fix reference to supertrait syntax in 09_error_trait.md (#124)
Some checks are pending
CI / build (push) Waiting to run
CI / formatter (push) Waiting to run
The [Error trait](https://rust-exercises.com/100-exercises/05_ticket_v2/09_error_trait.html?highlight=supertrait#the-error-trait) chapter states that the reader may recall the supertrait syntax from the [Sized trait](https://rust-exercises.com/100-exercises/04_traits/08_sized) chapter. Actually the syntax is introduced in the [From and Into](https://rust-exercises.com/100-exercises/04_traits/09_from) chapter instead. This PR amends the text accordingly.
2024-08-05 17:53:07 +02:00