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

956 Commits

Author SHA1 Message Date
Henri Fontana
3150163f95
pt-BR: Updates/completes translations for ch 1-6 (#886)
* Completing and improving pt-BR translation for
chapter 1.

* Small typo fix.

* Some other fixes.

* pt-BR: Updates/completes translations for ch 1-6

* Fix missing '\n'
2023-07-01 09:34:02 +01:00
João Victor Mendes
0326a45816
Update CODEOWNERS (#890) 2023-06-30 12:59:24 +00:00
João Victor Mendes
f1dd836f4f
pt-BR: update some fuzzy translations (#787)
Co-authored-by: Hugo Drumond Jacob <74555956+hugojacob@users.noreply.github.com>
2023-06-30 09:57:40 -03:00
Victor Costan
0c867c952f
"Strings and Iterators" solution that uses let-else (#833)
Add "Strings and Iterators" solution that uses let-else.
2023-06-29 08:52:58 +02:00
Martin Geisler
b83dd9a1f9
zh-CN: translate ownership (#868)
Part of #324.
2023-06-28 09:11:39 +00:00
Martin Geisler
fe40ef54e5
zh-CN: translate cargo (#870)
* zh-CN: translate cargo

Part of #324.

* Apply suggestions from code review

Co-authored-by: Abner Chou <zhcjtht@hotmail.com>

---------

Co-authored-by: Abner Chou <zhcjtht@hotmail.com>
2023-06-28 09:01:28 +00:00
Martin Geisler
03b1c0d06b
zh-TW: translate cargo (#871)
* zh-TW: translate cargo

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@chromium.org>

* Use 建構 for build instead of 建立

---------

Co-authored-by: Jonathan Hao <phao@chromium.org>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-06-28 09:56:13 +02:00
Martin Geisler
b14aaf768d
zh-TW: translate ownership (#860)
* zh-TW: translate ownership

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@chromium.org>

* Replace "擁有權" with "所有權"

* Remove "__"

---------

Co-authored-by: Jonathan Hao <phao@chromium.org>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-06-28 09:20:34 +02:00
Henri Fontana
cb8acfe2da
Update CODEOWNERS - add pt-BR reviewer (#880)
Adding myself (native Brazilian) as a pt-BR reviewer.
2023-06-28 09:19:33 +02:00
Martin Geisler
a2ff653d84
zh-CN: translate credits (#867)
Part of #324.
2023-06-28 09:17:53 +02:00
Martin Geisler
86a4bb4f89
zh-CN: translate enums (#869)
Part of #324.
2023-06-28 09:17:36 +02:00
Martin Geisler
3e26c0feed
zh-CN: translate control-flow (#866)
Part of #324.
2023-06-28 09:15:18 +02:00
Zhang Rui
f7d969787b
zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md (#796) (#841)
* zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md and some words in SUMMARY.md (#796)

* zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md and some words in SUMMARY.md

* Use "类型推导" for "Type Inference"

* Update translation in src/basic-syntax/type-inference.md

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>

* Update translation in src/basic-syntax/variables.md

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>

* Update translation in src/basic-syntax/type-inference.md

* Add newlines inside translation at src/basic-syntax/type-inference.md:28

* Revert "Update translation in src/basic-syntax/type-inference.md"

This reverts commit 5119474c1c.

* zh-CN: use `#, fuzzy` instead of FIXME comment in basic-syntax/type-inference.md

---------

Co-authored-by: Zhang Rui <me@zhrichard.me>
Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-06-27 12:55:35 -04:00
wnghl
933abb6596
zh-CN: translate src/pattern-matching/destructuring-arrays.md (#834) 2023-06-27 17:49:34 +08:00
Chiin
753e53ad17
Correct print statement in library exercise (#876)
* fix(day 1): correct print statement logic for library emptiness status

* chore: add explicit method print

* chore: change `:` for `->`
2023-06-27 08:22:50 +00:00
HangDu
d5e460fddd
zh-CN: Translation for src/exercises/day-2/afternoon.md (#875)
Co-authored-by: Hang Du <hhangdu@google.com>
2023-06-25 09:58:13 +08:00
AdrienBaudemont
c4236cf718
fr: Update the translation for "Running the Course". (#874) 2023-06-24 00:37:41 +02:00
Victor Costan
0b4891fb1f
Unified FFI setup for for readdir() on macOS (#857)
Unified FFI setup for for readdir() on macOS.
2023-06-23 15:48:18 +02:00
CoinEZ
525ed90084
ja: Translate chapter 5 (#825)
* ja: Ch5.0 #652

・not confident about the translation "access to low-level hardware"

* ja: Ch.5.1 #652

* ja: Ch.5.2 #652

・"integer overflow is defined" -> 「整数オーバーフローの挙動が定義されている」 not confident here

* ja: Ch.5.3 #652

・a tad nit-picky, but believe the "The reasoning behind this..." should be on a line of its own, adding a "\n" between any of the three bullet points can fix this, BUT it will add a line between them. I personally prefer adding the "\n", but left as is

* ja: Ch.5 #652

fixes suggested by @keiichiw
2023-06-23 21:30:14 +09:00
Martin Geisler
eb6850a1d0
Clarify what "it" is in rust.md (#855) 2023-06-22 14:28:14 +00:00
Martin Geisler
d1d29283ba
Remove ineffective LICENSE link (#850)
Just like the Markdown files in #846, we cannot generate a redirect
for the LICENSE file this way. The broken link was fixed in #813, so
we should be fine here.
2023-06-22 16:27:56 +02:00
Martin Geisler
b7469f779e
Update if-let-expressions.md (#854)
The use of "interesting" here made the sentence unclear to our Localization team.
2023-06-22 16:27:34 +02:00
Martin Geisler
aba7fd7f56
Simplify error handling pages (#851)
This makes the `use` statements more consistent and shortens some
variable names.
2023-06-22 16:27:06 +02:00
Martin Geisler
ccde0db38c
Exclude book/ directory from auto-formatting (#852)
The directory contains generated files and should be ignored when
reformatting.
2023-06-22 10:13:53 -04:00
Martin Geisler
5d71f8a326
Open GitHub edit links in new tabs (#856)
I find this nicer since you don't lose your location in the book then.
2023-06-22 09:50:20 -04:00
Martin Geisler
5e42cc3548
Clarify wording in lifetimes.md (#853) 2023-06-22 13:47:27 +01:00
Martin Geisler
186d333227
Run builds on both Mac OS and Linux (#830)
* Run builds on both Mac OS and Linux

This would have helped us catch #570.

* Fix MacOS CI (#848)

* Revert unnecessary changes

The changes might be good, but I want to keep this PR small and
focused. If we end up with the extra `cfg` statements, we should
include a comment to let students know what they do: we’re targeting
people new to Rust, so we need to be careful with explanations.

---------

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2023-06-22 10:38:41 +02:00
Kuba
4ed75d6b65
pl: Add mostly-machine-translated Polish translation (#688) 2023-06-22 10:18:29 +02:00
Yonghyun
da569cd7c4
Update default-methods.md (#747)
* Update default-methods.md

This commit resolves two issues.

a) typo: Equal -> Equals
b) update details to comply w/ example source code

* Update src/traits/default-methods.md

Co-authored-by: Edward Liaw <edliaw@google.com>

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
Co-authored-by: Edward Liaw <edliaw@google.com>
2023-06-22 09:05:11 +02:00
dependabot[bot]
f0d027b04a
build(deps): bump openssl from 0.10.49 to 0.10.55 (#849)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.49 to 0.10.55.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.49...openssl-v0.10.55)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-22 09:04:44 +02:00
Ming-Ying Chung
a5fbd2fd7c
Add PR labeler action to label translation-related PRs (#845)
* Add PR labeler action to label translation-related PRs

* Sync labels when PR changes

* Update instructions for new translation
2023-06-22 14:21:33 +09:00
Andrew Walbran
0202ba2fc9
Make User pub to avoid unused code warnings when running tests (#822) 2023-06-21 15:08:37 +01:00
Andrew Kushyk
a311edb3fb
uk: Create Ukrainian translation (#835)
* Create ua.po

Added Ukrainian translation

* Update ua.po

* Update CODEOWNERS

* Rename ua.po to uk.po

* Update CODEOWNERS

* Update CODEOWNERS

* Update CODEOWNERS

* Update CODEOWNERS
2023-06-21 11:46:11 +01:00
Andrew Walbran
c1ad97c659
Fix example to build and run (#838) 2023-06-21 09:48:05 +01:00
Martin Geisler
a3ef74f107
Remove .md redirects from book.toml (#846)
Those redirects don't actually work: they are not given a `Content-Type` by GitHub and so the browser doesn't threat them as HTML and won't follow any redirect.
2023-06-21 09:47:39 +01:00
Jonathan Hao
1868ef3670
zh-TW: Translate unit-tests.md. (#840)
[zh-TW] Translate unit-tests.md.
2023-06-21 16:46:56 +09:00
vanyabrucker
1ed40f4746
Corrected spelling in bounded.md (#844)
Corrected spellling  bounded.md
2023-06-21 07:12:59 +00:00
Dima
fa58fc8144
Add dyeroshenko@ as reviewer for po/uk.po (#839)
Add dyeroshenko@ as reviewer for */uk.* file

- Add dyeroshenko@ for translations in Ukrainian
- Fix alphabetical sorting
2023-06-20 14:15:43 +00:00
Anlun Xu
78a7f19e34
zh-CN: Add translation for pattern-matching.md (#821)
* [zh-CN] Add translation for pattern-matching.md

* Update po/zh-CN.po

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

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-06-20 08:54:11 +08:00
Victor Costan
b2ebd8848c
Document the historical reference in the newtypes example (#826)
Document the historical reference in the newtypes example.
2023-06-18 14:37:57 +02:00
CoinEZ
cb32c4d108
ja: Ch.4 #652 (#809)
* ja: Ch.4 #652

・"C/C++/Java tradition" -> 「C/C++/Java系統」: could not think of anything better
・"# Small Example" left untranslated

* ja: Ch.4 #652

fixes suggested by @keiichiw
2023-06-15 13:51:18 +09:00
Doris-Ge
935456fccb
zh-CN: Translation for src/basic-syntax/scopes-shadowing.md (#793)
* zh-CN: Translation for src/basic-syntax/scopes-shadowing.md

* Change the translation for shadowing from 遮蔽 to 隐藏

* Address superwhd's comments
2023-06-15 09:28:39 +08:00
Md. Rasel Mandol
5d56a529da
Bengali translation: to link incomplete Bengali translation (#819)
Bengali translation: to link incomplete Bengali translation
2023-06-14 19:37:22 +01:00
Andrew Walbran
54fd2578d3
Add pages about entry point and exception handling on APs (#802)
* Add page about entry point before Rust code.

* Convert tabs to spaces.

mdbook doesn't seem to handle tabs in code properly.

* Add page about handling exceptions.

* More nuanced discussion of Rust Raspberry Pi OS tutorial.

* Add note about EL1 to entry point page too.
2023-06-14 18:27:07 +00:00
HangDu
9127253adf
zh-CN: translate src/welcome-day-2.md (#817)
Co-authored-by: Hang Du <hhangdu@google.com>
2023-06-14 17:34:07 +08:00
Martin Geisler
0e09a1c569
Add redirects for all broken links to book.toml (#814)
This should clean up the list of 404 errors in the Search Console.
2023-06-14 10:21:22 +01:00
Martin Geisler
53fff52b60
Fix link to LICENSE in credits.md (#813)
The link worked fine when GitHub was rendering it — it rewrites the relative path correctly. However, when viewed as the output of `mdbook`, the link pointed to nowhere.
2023-06-14 10:17:29 +01:00
Ke Xu
bc031361ae
zh-CN: translate src/welcome-day-1.md (#805)
* zh-CN: translate src/welcome-day-1.md

* Update po/zh-CN.po

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-06-14 11:09:31 +08:00
Martin Geisler
02dea6bd28
zh-CN: Translate Concurrency morning (#785)
* zh-CN: translate the Concurrency morning

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Anlun Xu <anlunx@google.com>
Co-authored-by: Siwei Xu <xusiwei1236@gmail.com>
Co-authored-by: wnghl <wnghilin@gmail.com>
2023-06-13 20:06:59 -07:00
Yulin Shen
c878ecd7a8
zh-CN: Translation for src/exercises/day-2/morning.md (#806) 2023-06-14 08:57:15 +08:00