Commit Graph
1532 Commits
Author SHA1 Message Date
Ross MacArthur a2e4bbfdfb Update TOML link to official website 2020-07-28 22:39:54 +02:00
Carol (Nichols || Goulding) 1ef6872781 Merge pull request #2249 from Vinnl/patch-1
Add link to the `Vec<T>` API documentation
2020-07-27 15:15:16 -04:00
Carol (Nichols || Goulding) 44fbe88fdf Merge pull request #2361 from RalfJung/atomic
link to stdlib atomic docs
2020-07-27 15:09:53 -04:00
Steve Klabnik a914f2c7e5 Merge pull request #2399 from LeafyLi/patch-7
Change misleading wording
2020-07-21 09:20:05 -05:00
LeafyLi 88250d663d Change misleading wording 2020-07-12 14:45:00 -04:00
LeafyLi 22fb3d0cba Improve wording to be more inclusive 2020-07-11 11:18:54 -04:00
Chris Denton bad683bb7d Update Windows install instructions
Updates the Visual Studio build tools link and adds a sentence about what needs to be selected during install.
2020-07-02 19:37:15 +01:00
YErii fce7281061 Update ch01-02-hello-world.md
first paragraph starts with a new line
2020-06-27 16:38:44 +08:00
Carol (Nichols || Goulding) 4e7c00bece Link to the reference file that exists
Thought I was going to be clever but linkcheck doesn't like it.
2020-06-19 09:39:12 -04:00
Carol (Nichols || Goulding) 9ebf3a03d8 Link to the reference 2020-06-19 08:34:25 -04:00
Carol (Nichols || Goulding) 77fa546b15 Merge pull request #2351 from rust-lang/steveklabnik-patch-3
Clean up discussion around advanced lifetime stuff
2020-06-19 08:28:15 -04:00
Dev380 41d9f4c9ae Reword Chapter 6 page 2, match
Removed unnecessary coma for readability.
2020-06-14 20:27:16 +00:00
Steve Klabnik 833e66318f Clarify some package/crate distinctions in chapter 14
Fixes #2287
2020-06-14 08:21:52 -05:00
Steve Klabnik c15f1bca53 Merge pull request #2368 from alexxroche/patch-1
Not mandatory with cargo 1.41.0-nightly
2020-06-14 01:04:23 -05:00
Sadika Sumanapala 1f8e2ec392 Use same naming for Rhs as libcore/ops
Use same naming scheme as libcore/ops
2020-06-13 22:20:21 +05:30
Alexx Roche 090be67d31 Not mandatory with cargo 1.41.0-nightly
```bash
$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/adder`
Hello, world! 10 plus one is 11!
```
2020-06-11 13:00:49 +02:00
Steve Klabnik 48b962532c Merge pull request #2363 from rust-lang/gh1761
Tweak example in chapter 10
2020-06-07 08:35:33 -05:00
Steve Klabnik 43565d343b Tweak example in chapter 10
We were cheating due to Copy, and that made this example awkward.
Returning a reference is probably better here anyway, and it makes
everything flow a bit nicer.

Fixes #1761
2020-06-07 08:01:34 -05:00
Steve Klabnik 82892bfe74 Mention that to_lowercase isn't perfect
FIxes #2148
2020-06-07 07:59:19 -05:00
Ralf Jung 57fa4af306 link to stdlib atomic docs 2020-06-05 20:31:56 +02:00
Steve Klabnik bc09bf505a Merge pull request #2347 from damoasda/translation-german
Link German translation in appendix F
2020-06-05 10:46:52 -05:00
Steve Klabnik b9db810417 Merge pull request #2332 from sl4m/ch15-02-deref-update
Updates wording on Box example
2020-06-05 10:46:32 -05:00
Steve Klabnik de7f70f2b7 Merge pull request #2305 from rxlecky/reword-ch01-03-recap
Reword ch01-03 recap paragraph
2020-06-05 10:44:48 -05:00
Steve Klabnik 7763fcda28 Merge pull request #2358 from rust-lang/gh1598
Remove some confusing wording.
2020-06-05 10:43:03 -05:00
Steve Klabnik 69a02d47e9 Remove some confusing wording.
We already talked about &String and &str coercing to &str earlier in the
book, so let's refer to that rather than repeat stuff here, which ends
up being a bit confusing anyway.

Fixes #1598
2020-06-05 10:40:11 -05:00
Steve Klabnik fed1ab75e4 Clarify some wording a bit
It's not just that we add something to the end, it's also that we need
to hold onto the reference.

FIxes #1785
2020-06-05 10:33:15 -05:00
Ryan Willis 855aabd099 Update ch12-05 PowerShell note 2020-06-02 17:04:02 -07:00
Steve Klabnik d44317c312 text -> console
The "text" style is just plain text, but we were also using it for
command line examples. Turns out that highlight.js has a style for this,
called "console."

This commit updates all instances of using text for a command line
example to use console instead.

Fixes #1449
2020-06-02 08:33:02 -05:00
Steve Klabnik 201a57d9ca Clean up discussion around advanced lifetime stuff
This stuff has been removed

Fixes #2211
2020-06-01 08:44:06 -05:00
Steve Klabnik 73616cefbf Improve wording around drop
Technically box is still special so this is in the compiler, not in a Drop impl.

Fixes #2260
2020-06-01 08:41:22 -05:00
Steve Klabnik 939098de3d Make some statements about crates more correct
We were a little fast and loose here, but:

* a package is what you depend on in cargo.toml, this downloads and includes all of its crates
* you use crates, not packages

There were several instances where we tried to say "package" where it was technically a crate, I've cleaned those up here.

Fixes #2210
2020-06-01 08:06:25 -05:00
Herbert Reiter c99e7cf683 Add link to German translation 2020-05-31 21:50:32 +02:00
Steve Klabnik e8a4714a9d code is 1024 now, not 512 2020-05-25 10:29:27 -05:00
Steve Klabnik 18437032e0 Clean up install a bit
Rustup has gotten better about explaining the shell behavior, so
including it doesn't make sense. This also

Fixes #2129

The bit about reading the script feels out of place to me, and we mostly
included it because people complainined about bash | sh, but I care more
about the text than I do about that these days.
2020-05-23 08:57:26 -05:00
Steve Klabnik df7b104359 operating system -> allocator
This is more technically correct.

Fixes #2218
2020-05-22 17:36:09 -05:00
skim 4684caca9d updates wording on Box example 2020-05-13 12:11:22 -07:00
Steve Klabnik 6247be15a7 Merge pull request #2321 from gokhanettin/fix-guessing-game-listing-explanation
Fix guessing game listing explanation
2020-05-03 10:55:09 -05:00
David Liedle e4a06dce6a Update ch01-01-installation.md
Changes `http` to `https` in the link to StackOverflow
2020-04-29 18:31:04 -06:00
SeleckyErik c22d403357 Reword ch01-03 recap paragraph
The original wording suggests that cargo check builds a project. The new
wording makes it clear what its actual functionality  is.
2020-04-27 10:14:51 +02:00
Gökhan Karabulut 8b4b7974d5 Fix guessing game listing explanation
Due to running rustfmt on code listings, explanation and listing does
not match in guessing game chapter. Fix this mismatch.
2020-04-26 14:38:25 +03:00
Adam Spofford 37f458ff61 Clarify short-circuiting behavior 2020-04-22 14:04:51 -07:00
Steve Klabnik f688ff20a4 Merge pull request #2246 from Adeleet/master
Increase HTTP buffer size and add 'Content-Length' header
2020-04-15 08:26:06 -05:00
Montgomery Edwards⁴⁴⁸ 0302ba9566 Update ch01-01-installation.md to require TLS 1.2
Require tlsv1.2 when downloading rustup init script like this:

$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

The new code snippet still fits on one line (tested with Source Code Pro font in Firefox).

Close #2300
2020-04-11 12:04:10 -05:00
Steve Klabnik 2ae087182f Merge pull request #2239 from apatniv/use_references
traits as parameters: Use references instead of moving the values
2020-04-06 10:54:21 -05:00
Steve Klabnik 34553b9ffe Fix a broken link 2020-03-31 19:32:49 -05:00
Steve Klabnik 7d501925fd Merge pull request #2285 from aDotInTheVoid/patch-1
Update go docs link
2020-03-31 17:27:24 -05:00
Steve Klabnik 0ed3844e88 Merge pull request #2283 from pomokhtari/master
Add the farsi translation repo link
2020-03-31 17:26:59 -05:00
Steve Klabnik 85817b29ac Merge pull request #2278 from filakhtov/ch06-02-fix
Add the missing word to the sentence (ch06-2)
2020-03-31 17:23:40 -05:00
Steve Klabnik b76c30a754 Merge pull request #2276 from NejcZdovc/listing-3-19-output
Fixes hardcoded output
2020-03-31 17:23:12 -05:00
Steve Klabnik 2a87cc0d0e Merge pull request #2271 from andyps/addUnionToKeywords
Add union to the list of keywords
2020-03-31 17:21:34 -05:00