1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 06:20:32 +02:00
Commit Graph

1181 Commits

Author SHA1 Message Date
Dominik Maier
9e825fbd59
Clarify the "Slices" question and fix the answer (#990)
Clarify the question and fix the answer
2023-07-17 16:32:49 +00:00
Dominik Maier
faab0e2ee6
Clarify that crates don't have to live on crates.io (#985) 2023-07-17 17:58:04 +02:00
Henri Fontana
75bc262983
Update translations.md (#979)
Update list of contributors for the pt-BR translation.
2023-07-17 08:49:19 -07:00
Martin Geisler
79ae681f78
Fix broken module example (#983)
The module is external, so it should not have curly braces.
2023-07-17 16:54:47 +02:00
Martin Geisler
ab5988180b
ko: refresh translation for concurrency (#932)
* ko: refresh translation for concurrency

Part of #925.

* ko: move translation back to where it belongs

This is likely outdated, but moving it here helps avoid conflicts. The
outdated paragraph can be cleaned up with `msgmerge` at a later point.
2023-07-17 09:47:44 +00:00
Martin Geisler
d8ffa270aa
ko: refresh translation for android (#934)
* ko: refresh translation for android

Part of #925.

* ko: move translations back to where they belong

Moving them back helps avoid conflicts. The outdated paragraphs can be
cleaned up with `msgmerge` at a later point.
2023-07-17 09:38:50 +00:00
Martin Geisler
45a41b33d9
ko: refresh translation for pattern-matching (#933)
* ko: refresh translation for pattern-matching

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

* ko: move translation back to where it belongs

This is likely outdated, but moving it here helps avoid conflicts. The
outdated paragraph can be cleaned up with `msgmerge` at a later point.

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-17 09:34:19 +00:00
Martin Geisler
acd1c41f07
ko: refresh translation for generics (#929)
* ko: refresh translation for generics

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

* ko: move translation back to where it belongs

This paragraph is likely outdated, but moving it here helps avoid
conflicts. The outdated paragraph can be cleaned up with `msgmerge` at
a later point.

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-17 09:28:51 +00:00
Martin Geisler
15f5ced5f9
ko: refresh translation for unsafe (#927)
Part of #925.
2023-07-17 09:06:04 +02:00
Henri Fontana
4d11d59247
pt-BR: Review new fuzzy entries after .po file refresh (#976)
* Added steps to configure Poedit properly

* Small adjustments

* Add link to Poedit

* Fix file formatting

* One. More. dprint. Fix.

* Normalizes pt-BR.po file format through Poedit
with line wrap.

* Fix typo.

* Fix fuzzy entries after .po file reformatting.

* Fix one code sample
2023-07-14 18:34:09 +00:00
Henri Fontana
d891d0bb5e
pt-BR: normalize file formatting (#975)
* Added steps to configure Poedit properly

* Small adjustments

* Add link to Poedit

* Fix file formatting

* One. More. dprint. Fix.

* Normalizes pt-BR.po file format through Poedit
with line wrap.

* Fix typo.
2023-07-14 08:57:05 -07:00
Martin Geisler
e6a28fbeaf
ko: refresh translation for traits (#926)
Part of #925.

Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 13:36:15 +00:00
Martin Geisler
677e1feae1
Disambiguate b in main_improved.rs (#977)
Based on #761.
2023-07-14 12:01:00 +01:00
Martin Geisler
f00711d333
ko: refresh translation for modules (#939)
* ko: refresh translation for modules

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

* Update po/ko.po

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 10:25:55 +00:00
Martin Geisler
2e45cd95ef
ko: refresh translation for cargo (#943)
Part of #925.
2023-07-14 10:13:53 +00:00
Martin Geisler
c74759b5c1
ko: refresh translation for structs (#936)
* ko: refresh translation for structs

Part of #925.

* Fix missing `\n` po/ko.po
2023-07-14 10:11:40 +00:00
Martin Geisler
e79fd4f845
ko: refresh translation for testing (#931)
* ko: refresh translation for testing

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 10:09:46 +00:00
Martin Geisler
d052f4402b
ko: refresh translation for basic-syntax (#937)
* ko: refresh translation for basic-syntax

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

* Update po/ko.po

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 12:05:24 +02:00
Martin Geisler
cc171fa7cf
ko: refresh translation for welcome (#946)
* ko: refresh translation for welcome

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 09:59:58 +00:00
Martin Geisler
5715ddc924
ko: refresh translation for control-flow (#935)
* ko: refresh translation for control-flow

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 11:53:58 +02:00
Martin Geisler
062df5c3a8
ko: refresh translation for SUMMARY (#940)
* ko: refresh translation for SUMMARY

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 11:48:19 +02:00
Martin Geisler
47b31e8d7e
ko: refresh translation for credits (#942)
* ko: refresh translation for credits

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 11:47:08 +02:00
Martin Geisler
bded36a214
ko: refresh translation for methods (#949)
Part of #925.
2023-07-14 11:44:54 +02:00
Martin Geisler
2e6219c005
ko: refresh translation for memory-management (#947)
Part of #925.
2023-07-14 11:44:39 +02:00
Martin Geisler
5bb2dc81a0
ko: refresh translation for ownership (#944)
Part of #925.
2023-07-14 11:41:49 +02:00
Martin Geisler
d7da4ad8fe
ko: refresh translation for running-the-course (#941)
* ko: refresh translation for running-the-course

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

* Rebase and move translations to correct spot

I believe the PO file would benefit from a msgmerge run. I’ll let the
translators do this after merging all outstanding translations.

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 09:21:21 +00:00
Martin Geisler
80823a6f2b
ko: refresh translation for enums (#930)
* ko: refresh translation for enums

Part of #925.

* Apply suggestions from code review

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>

---------

Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
2023-07-14 11:01:27 +02:00
Martin Geisler
9d99e9b082
ko: refresh translation for std (#938)
Part of #925.
2023-07-14 11:01:13 +02:00
eepeep
eda4766442
Fix some broken fragment ID encodings in rustdoc links (#571) 2023-07-14 08:55:46 +00:00
Martin Geisler
c4603fd595
Move Poedit instructions into new section (#960)
We did not actually have a section with instructions for how to edit a translation. Instead, this information was kind of implicitly there.
2023-07-13 08:19:52 -07:00
Henri Fontana
2e692fcc8a
Additional configuration steps on TRANSLATIONS.md (#959)
* Added steps to configure Poedit properly

* Small adjustments

* Add link to Poedit

* Fix file formatting

* One. More. dprint. Fix.
2023-07-13 11:00:46 +02:00
Victor Costan
ef99d15529
Fix solution in Link Checker in Concurrency Morning exercises (#904)
* Fix solution in Link Checker in Concurrency Morning exercises.

This change fixes the following issues with the current solution:

1. It is not listed on the "solutions" page.
2. It is not multi-threaded and does not use channels.

---------

Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
2023-07-13 10:52:06 +02:00
Frances Wingerter
abb05164da
Clarify a couple minor points (#912)
* compound types: disambiguate that length is not 'same'

* basic syntax: clarify preference for consts and quickly justify unsafety of static mut

* basic-syntax: take review feedback into account on consts/statics

* basic-syntax: be careful not to call `const` defns variables

variables in rust are `place`s in a formal sense and name objects in an informal one; `const` merely abbreviates an expression
2023-07-12 18:37:49 +01:00
Martin Geisler
6d736d69c4
Fix typo in enums.md (#958)
From #779.
2023-07-12 09:43:02 -07:00
Sharun
c564ca625f
remove $ from code-blocks in build_all.sh (#955)
* removed $ from code-blocks in build_all.sh

* separate the code from the output

* added shell indicator for the code block

* added shell indicator for the code block

* update logging.md

* separate the code from the output in other files as well

* update the output code-blocks to text
2023-07-12 16:31:16 +02:00
Martin Geisler
4f84a7e505
zh-CN: translate running-the-course (#861)
* zh-CN: translate running-the-course

Part of #324.

* Apply suggestions from code review

Co-authored-by: wnghl <wnghilin@gmail.com>

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-07-12 12:04:48 +02:00
Henri Fontana
666fe8f71d
pt-BR: Day 3 afternoon tune-up - ch. 27-30 (#956)
* pt-BR: Day 3 afternoon tune up, ch. 27-30

* Fix. One. Missing. "/n"
2023-07-12 10:42:31 +01:00
Frances Wingerter
2f5dcbafc3
Rework health statistics exercise (#909)
* exercises: health-statistics: weight -> height

weight may be a sensitive topic for some readers; use height instead as this isn't important to the content of the course

* exercises: health-statistics: add health report

this lets us see a non-setter use case for &mut self

it also makes the 'statistics' side of this exercise more explicit as we count doctor visits

* exercises: health-statistics: normalize variable names
2023-07-11 18:01:49 -04:00
Yohann Coppel
446ca40584
fr: Clean update of messages (#918) 2023-07-11 21:33:21 +02:00
Doris-Ge
365d7dc62a
zh-CN: translate basic-syntax/static-and-const.md (#877)
* zh-CN: translate basic-syntax/static-and-const.md

* Fix build error

* Update po/zh-CN.po to commit suggestions

Co-authored-by: Anlun Xu <anlunx@google.com>

---------

Co-authored-by: Anlun Xu <anlunx@google.com>
2023-07-11 10:30:05 -07:00
Martin Geisler
31de4e3dea
de: normalize line width to 79 columns (#954)
This was done using

    msgcat --width 79 -o po/de.po po/de.po

This is done to get a clean diff for the changes in #828, see also the
discussion in #800.
2023-07-11 10:03:12 -07:00
Sharun
f5764ad4bc
remove $ from code-blocks in other markdown files as well (#952)
* remove $ from code blocks in translations

* remove $ from code blocks in the other markdown files as well

* Revert "remove $ from code blocks in the other markdown files as well"

This reverts commit eda922dab9.

* remove $ from code blocks in setup.md

* re-added the previous changes

* revert logging.md
2023-07-10 21:25:41 -07:00
Erdem
427aab110f
Adds a comment for an iterator based implementation for Polygon::length (#950)
Outlines an alternative implementation for Polygon::length.  This exercise is aimed at novice users and we want to keep the implementation simple. For users familiar with iterator concepts this comment points to an alternative.
2023-07-10 22:55:33 +00:00
Sharun
cabf98be72
remove $ from code blocks in README (#951) 2023-07-10 22:52:00 +00:00
Henri Fontana
51276a6444
pt-BR: Updates and completions - ch.11,18 to 21 (#924)
* pt-BR: Updates and completions - ch.18 to 21

* Fix a single typo

* pt-BR: Ch.11 tune-up
2023-07-10 13:53:17 -03:00
Kanta Yamaoka (山岡幹太)
09b3e3ab19
ja: Translate chapter 52 (Async Basics) (#778)
* ja: draft of Ch. 52 google#652

* ja: tiny fix draft of Ch. 52 google#652

* ja: reflect review by @chikoski, Ch. 52 google#652

* ja: reflect review (生徒->受講者) by @chikoski, Ch. 52 google#652

* ja: adjust header info to reduce future conflict

* ja: reflect review by @keiichiw, Ch. 52 google#652
2023-07-10 20:40:27 +09:00
Per Larsen
2f77996d0f
da: Complete translations for SUMMARY.md (#923)
* da: Complete translations for SUMMARY.md

* Apply suggestions from code review

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-07-10 08:30:58 +00:00
João Victor Mendes
d0b1217c8c
pt-BR: Update and Complete chapters 15 to 17.2 (#922)
* pt-BR: update and translate chapters 15 to 17.2
* address the comments as you wish
Thank you, @joaovicmendes !
2023-07-08 15:07:37 -07:00
João Victor Mendes
2f6c4f2226
pt-BR: Update and Complete chapter 12 to 15.2 (#920)
* Translate chap 12 to 15.2

* Remove unicode chars
2023-07-07 15:59:11 +01:00
Henri Fontana
eef6906235
pt-BR: Updates and completions - ch.6 to 10.8 (#914)
* pt-BR: Updates and completions - ch.6 to 10.2

* pt-BR: Updates and completions - ch.10.3 to 10.8
2023-07-07 15:56:57 +01:00