412 Commits (c898f9c89217a9fbb0c4c77126a454afe112ae05)

Author SHA1 Message Date
Dhghomon 1a2b5ded95
+ chunks, windows 4 years ago
szTheory 70f790ccca
Fix other instance of city name in example 4 years ago
szTheory 2b38de17cc
Fix city name in example 4 years ago
Dhghomon 4cef9ad9af
Parts 1 + 2 4 years ago
Dhghomon c59a16831e
+ comments 4 years ago
Dhghomon 74fa340cf2
TOC 4 years ago
Dhghomon 6e23b8c08d
+ rayon 4 years ago
Dhghomon 72c9e08cf7
Add note 4 years ago
Dhghomon f48a6cc5b1
Start external crates 4 years ago
Dhghomon dd063356d0
Merge pull request #56 from kemra102/master
Fix typo
4 years ago
Dhghomon c14761f3fc
Merge pull request #55 from szTheory/patch-2
Fix in-line code sample backtick formatting
4 years ago
Danny f4261209d2
Fix typo
Fix typo in destructuring section, moving a stray backtick to the correct location.
4 years ago
szTheory a7c1f86b45
Fix in-line code sample backtick formatting 4 years ago
szTheory 7943c4da48
Fix typo 4 years ago
Arcadie 95ed85511f Typo fixes: attributes, derive, deref and testing.
attributes - remove list tag from first example, not used for the others;
derive - String does not implement Copy;
deref - small typo, remove extra dot from .main();
testing - use two backticks to escape backticks used in code block, explicitly use assert!(left, right) for the description, add missing quote in last example;
4 years ago
Dhghomon 1891f1311e
More on testing, etc. 4 years ago
Sebastian c74e1adeee
Incorrect formatting of `print_one_thing` method
This caused the whole sentence to be highlighted instead the function name.
4 years ago
Dhghomon 4616e62a07
Merge pull request #49 from chapeupreto/patch-2
fix typo
4 years ago
Rod Elias 8046f872ae
fix typo 4 years ago
Rod Elias e058c79219
fix output for "Printing 'hello, world!'" example 4 years ago
Dhghomon fa41a486c7
Start testing 4 years ago
Dhghomon 48c9fbd7a0
Clarify after pickfire's PR re: reach 4 years ago
Dhghomon 8f7bfceaa3
Comment on Box 4 years ago
Dhghomon f147aef4f7
Update status 4 years ago
Dhghomon 87f0f76333
super 4 years ago
Dhghomon 0fd4fdde56
Start crates and modules 4 years ago
Dhghomon 961e71f081
Deref and DerefMut 4 years ago
Dhghomon 984002eec4
+ fold 4 years ago
Dhghomon 56556d1531
Bit more on .expect() 4 years ago
Dhghomon a4d7fb6367
br print result 4 years ago
Dhghomon f1614b868f
add br 4 years ago
Dhghomon 9c18d8361f
TOC 4 years ago
Dhghomon c0cf28ba3b
Box around traits 4 years ago
Akshat Agarwal 4f438f8d7c
fix small typo 4 years ago
Dhghomon 5ac4d3a2c0
Attributes section 4 years ago
Dhghomon 744d910a47
Rewrite snippet part, bit on attributes 4 years ago
Dhghomon 898784fc32
Some more closure explanation 4 years ago
Dhghomon e09e309f06
Merge pull request #42 from elfsternberg/L7104-type-correction
This block describes the typing incorrectly.
4 years ago
Dhghomon 38ac7cceef
Merge pull request #41 from patahene/patch-1
Fix an example output
4 years ago
Dhghomon c01835408a
Merge pull request #40 from Zyfarok/master
Fix shadowing example
4 years ago
Elf M. Sternberg e654c7d8e5 This block is confused.
Consider the following demonstration (this code compiles under Rust 2018
as a drop in for the contents of main.rs after `cargo new mapdemo --bin;
cargo run`):

```
fn main() {
	let x = [1, 2, 3, 4, 5];
	let z = x.iter().map(|&x| format!("{}", x)).collect::<Vec<String>>();
	println!("{:?}", z);
}
```

The `self` argument to map will be an `Iter<u64>`.  The `Self::Item`
type is therefore `u64`.  The return type of the function being passed
to map is `String`.  This is what the `B` type variable indicates: the
return type of the function, as can be clearly seen in the second line
of the `where` clause in your example:

```
    F: FnMut(Self::Item) -> B
```
4 years ago
patahene f592f662e4
Update README.md 4 years ago
Zyf 3b8d5057d6
Fix shadowing example 4 years ago
Arcadie 583281f2d5 Use emojis to ignore snippets that won't compile / code fragments.
I did a search and replace for:

// (note: this will not compile) incomplete code snippet -> // ⚠️
// (note: this will not compile) -> // 🚧

Note: Requires md2src version 1.1.0 or later!
4 years ago
Dhghomon cddf839e32
Default + builder pattern 4 years ago
Arcadie 192047be94 Delete whitespace, tweak phrasing 4 years ago
Arcadie 9e9bf0a265 Arc: when spanwing threads in a loop, call join on handlers at the end 4 years ago
Arcadie 27def910d6 Mutex: fix output for code samples 4 years ago
Arcadie a1f511f80f Generics - fix print with, specify variables of type U 4 years ago
Arcadie c56888fcf5 VecDeque - say items are moved instead of copied on remove() 4 years ago
Dhghomon 0dc4a75139
chars, len(), chars().count() 4 years ago
Arcadie e773c679bd Impl Trait - make snippets compile by fixing ignore message 4 years ago
Arcadie 3263dce437 Fix small typo in filter_map() example, get rid of into_iter() for range.
Range already implements Iterator trait, so no need for the into_iter().
4 years ago
Dhghomon fafdb36cec
Rewrite a bit 4 years ago
Dhghomon 613a9755f0
impl Trait 4 years ago
Dhghomon 36a056df85
Closures in functions 4 years ago
Dhghomon 8fb5b1e131
Explanation of what a snippet is 4 years ago
Alexander Willner 8c0d7a3b79 getting all code snippets to compile or to be skipped 4 years ago
Alexander Willner 27f0d7ad45 getting the first 50 code snippets to compile or to be skipped 4 years ago
Alexander Willner 6f0ed2ae75 Started to get snippets compile / mark them as uncompilable... 4 years ago
Alexander Willner 1cf4605343 Mark snippet as no compilable 4 years ago
Dhghomon a39f09850a
Some other methods 4 years ago
Dhghomon 56afb860af
.cycle() 4 years ago
Dhghomon 33705b94ba
.find(), .position() 4 years ago
Dhghomon b62700abae
.any(), .all() 4 years ago
Dhghomon ef187d51ba
.and_then(), .and() 4 years ago
Dhghomon e9fdd53a7e
ok_or + ok_or_else 4 years ago
Dhghomon 4ac9f67713
Fix typo 4 years ago
Dhghomon c4cb3c1ac1
More on closures + iterators 4 years ago
Dhghomon 516556fb5f
VecDeque 4 years ago
Dhghomon 9f9c7484c7
BinaryHeap 4 years ago
Dhghomon e7f9b6d27c
Start HashSet + BTreeSet 4 years ago
Suresh G e2ffd92ff1
Update README.md
spell changes
4 years ago
Dhghomon 17a9c09880
[] vs. .get() for HashMap 4 years ago
Dhghomon 6ccb798ce3
More on hashmaps 4 years ago
byschii 1f59c6b710
Typo 4 years ago
Dhghomon 3851cb54b9
Typo 4 years ago
Dhghomon 218a193dcf
Typo 4 years ago
Dhghomon 8e316f7402
More on r# and unicode escape 4 years ago
Dhghomon 75eb5a9194
correction 4 years ago
Dhghomon 3b337b533a
Add intro 4 years ago
Pradeep Chauhan 4d3f5a1c08
Merge branch 'master' into fix-typos 4 years ago
Pradeep Chauhan 4ee6006e8c Fix typos 4 years ago
Dhghomon b23782290f
.zip() and .collect() into HashMap 4 years ago
Dhghomon 6243d39632
Start HashMap 4 years ago
Dhghomon 4ea46d54d8
Commas in structs 4 years ago
Dhghomon f78d86b5c9
More on printing 4 years ago
Dhghomon 3c4237acd8
Correction 4 years ago
Dhghomon 91b0f71685
Start adding to printing 4 years ago
Sudo Nice 725ea14d80 Fix misleading Self explanation
closes #21
4 years ago
Dhghomon deaec92cbb
Slight reword 4 years ago
Alexander Willner fa0f6ea8cd Fixing Markdownlint: various fixes 4 years ago
Alexander Willner a8c88b7654 Fixing Markdownlint MD025: single h1 4 years ago
Alexander Willner f723508cc1 Fixing Markdownlint MD012: multiple blanks 4 years ago
Alexander Willner ddd6ccdda2 Fixing Markdownlint MD040: missed language definition 4 years ago
Alexander Willner 64622938fb Fixing Markdownlint MD004: unordered lists 4 years ago
Alexander Willner fdd687471f Fixing Markdownlint MD034: links 4 years ago
Alexander Willner ab9d4b6e91 removed compiler warnings 4 years ago
Arcadie 5ad66fff91 Fix output for 'Enums to use multiple types' 4 years ago
Dhghomon 86042e07ca
Merge pull request #22 from Naereen/patch-1
Tiny typo: varible -> variable
4 years ago
Dhghomon c47998dd23
Start Box 4 years ago
Lilian Besson ccd6403945
Tiny typo: varible -> variable
Hi,
First, bravo, great job done here!
Then, I saw this tiny typo: varible -> variable.
Regards
4 years ago
Dhghomon d46e8b7db9
One more example of why multiple numeric types 4 years ago
Dhghomon 76ea9f792d
Implementing the From trait 4 years ago
Dhghomon 461d8c293b
Traits in documentation + redo enum example
Enum example takes place before introducing attributes so small change to make #[derive(Debug)] unnecessary
4 years ago
Dhghomon 3cb4b92810
Merge pull request #19 from maxzinkus/patch-1
Fix typo
4 years ago
Michael Howell 1bf0dd5aaa
Replace `SkyState` with `ThingsInTheSky`
Looks like you missed one.
4 years ago
Max Zinkus f342922395
Fix typo 4 years ago
Dhghomon 7e723b2cff
Pointer address 4 years ago
pretzelhammer b9f15b6018 improves code formatting 4 years ago
Dhghomon a82e194506
Actually, two sentences could work 4 years ago
Jacob 0d384b0def adds missing curly braces, inline code formatting in Multiple threads 4 years ago
Dhghomon d6178a45c1
Correction on .into 4 years ago
Sudo Nice 98859f2982 Merge remote-tracking branch 'upstream/master' 4 years ago
Dhghomon 7f0490f435
Delete incorrect paragraph 4 years ago
Sudo Nice 0075ab0d1f Replace code block surrounding '```' -> '`' for inlined code
closes #7
4 years ago
Dhghomon 8619fb81d8
Expand on reference explanation 4 years ago
Dhghomon 4f60ee5c23
Small fixes + finish incompllete paragraph 4 years ago
ambiso 0bf6f280c4 Fix type aliases 4 years ago
Sudo Nice 2cb43c9b60 Fix code blocks formatting 4 years ago
Sudo Nice 7a5b5fa48b Fix wording 4 years ago
Sudo Nice e571353276 Fix spaces 4 years ago
Sudo Nice 7bd21adee9 Slightly precise (yet simple) wording 4 years ago
Dhghomon 4c4ddfe02e
Reading Rust documents 4 years ago
Dhghomon 9b6585963d
Tiny rewording 4 years ago
Dhghomon cbff1b12c0
Merge pull request #4 from ridiculousfish/unicode_tightening
Tighten up some language around ASCII
4 years ago
ridiculousfish 2490824036 Tighten up some language around ASCII
This commit attempts to clarify some language around char. It drops
mentions of ASCII and tries to make the language around u8<->char
more clear.
4 years ago
Dhghomon 4048fcb6fe
Add inclusive range syntax (..=) 4 years ago
Dhghomon 07568b0d08
reorder that 4 years ago
Dhghomon 53036e7274
See if this makes a table of contents 4 years ago
Hasan 10d126b313
Fix RC header 4 years ago
Dhghomon ae10226d20
Rephrase that 4 years ago
Dhghomon 01cb607a37
Enums to trick the compiler 4 years ago
Dhghomon 5fc2662967
Merge pull request #1 from sudo-nice/master
Some quick fixes
4 years ago
Sudo Nice 20466302ac Fix two arrays type comparison 4 years ago
Sudo Nice 5307d4aa32 Fix a typo 4 years ago
Sudo Nice 7476860f66 Fix formatting 4 years ago
Dhghomon e8bc11061f
Some more on match 4 years ago
Dhghomon f13cb9bf5a
More on match 4 years ago
Dhghomon 4ff4bf0824
Add Cow 4 years ago
Dhghomon 9494af328e
Channels 4 years ago
Dhghomon 8b7797700f
vec of join handles 4 years ago
Dhghomon 8bc9f4ea41
Add note 4 years ago
Dhghomon 6fb8806bb4
Arc Mutex in threads 4 years ago
Dhghomon 987a30dbe5
Rephrase a bit 4 years ago
Dhghomon 00876e5148
Move dot operator to under Struct intro 4 years ago
Dhghomon 42c7a7b2eb
Destructuring 4 years ago
Dhghomon 8399f6f6cd
Adding value after break 4 years ago
Dhghomon b37bd7bb5f
Unitialized variables 4 years ago
Dhghomon ccfe1e578f
More on lifetimes 4 years ago
Dhghomon 9bfa3a92e1
.into() for vecs 4 years ago
Dhghomon af47700b6a
Ways to make a String 4 years ago
Dhghomon 91e3cdf0f7
Implementing AsRef<str> 4 years ago
Dhghomon 4a3a0e9450
Start multiple threads 4 years ago
Dhghomon a5ad0d7b4a
|_| in closures 4 years ago
Dhghomon e3b81c7815
Start RwLock 4 years ago
Dhghomon 44cfcfed9c
Start RefCell, Mutex 4 years ago
Dhghomon 771d5860db
Start Rc 4 years ago
Dhghomon c9f9f55dab
+ u32 for unsigned integers 4 years ago
Dhghomon 1108a85a57
Typo 4 years ago
Dhghomon b25dcfab5f
todo! macro 4 years ago
Dhghomon 38475d6b90
Minor rewriting 4 years ago
Dhghomon 4047f77821
Minor rewriting 4 years ago
Dhghomon 749f165f1b
Small rewrites 4 years ago
Dhghomon 62e5da1cd8
Format a bit 4 years ago
Dhghomon 01f656125b
Type aliases and importing enums 4 years ago
Dhghomon b734b2e35e
Start interior mutability 4 years ago
Dhghomon 36d35d1c6a
Implementing Iterator 4 years ago
Dhghomon f7d824ae48
More on iterators 4 years ago
Dhghomon bd5d71191a
Types of &str, start lifetimes 4 years ago
Dhghomon 3f2c648379
dbg! and .inspect 4 years ago
Dhghomon 2230d16d6b
Dot operator 4 years ago
Dhghomon 8e0e2889ba
const and static 4 years ago
Dhghomon c3faf24c10
More on closures and iterators 4 years ago
Dhghomon 22def99013
Rewrite a bit 4 years ago
Dhghomon d63c018e35
Code blocks in closures 4 years ago
Dhghomon 2cfe5e055d
Start functional style and closures 4 years ago
Dhghomon d96f7c2d89
Move up 4 years ago
Dhghomon 7d23695084
More on unwrap, etc. 4 years ago
Dhghomon 516a56575a
panic! macro 4 years ago
Dhghomon de2764f528
Question mark operator 4 years ago
Dhghomon 3a62e33858
if let, while let 4 years ago
Dhghomon 9815c246f8
impl Display example 4 years ago
Dhghomon 22f7881799
Start traits 4 years ago
Dhghomon a7c026d38f
Start Result 4 years ago
Dhghomon cb1373fc12
Start Option 4 years ago
Dhghomon d91f518aac
More on generics 4 years ago
Dhghomon 04f2aff3c8
Start generics 4 years ago
Dhghomon b36125902d
Start impl blocks 4 years ago
Dhghomon 52f6dbc4bf
Start enums 4 years ago
Dhghomon 093c240743
Start loops 4 years ago
Dhghomon 5b78bd21de
More on Copy types 4 years ago
Dhghomon 08852b66e6
Start structs 4 years ago
Dhghomon 1cdb0f9fc0
Start control flow 4 years ago
Dhghomon 9f9fa8c342
Vecs, tuples 4 years ago
Dhghomon 69dfecf66d
Start vecs 4 years ago
Dhghomon 3cac277a6d
+ taking ownership and adding mut 4 years ago
Dhghomon 3dd7241b0c
More formatting 4 years ago
Dhghomon db3f84bd74
More on printing 4 years ago
Dhghomon 86b544df30
Chars, arrays 4 years ago
Dhghomon 519566411f
+ Arrays 4 years ago
Dhghomon b55b0b862d
Reference rules, more on shadowing 4 years ago
Dhghomon 8fc6c5adc8
References 4 years ago
Dhghomon 64da3b20b4
Start stack, heap, etc. 4 years ago
Dhghomon 71ed0d1939
More on functions 4 years ago
Dhghomon a603dee738
Typos 4 years ago
Dhghomon 90d58048c0
Mutability 4 years ago
Dhghomon 41c60ba349
Floats, more display 4 years ago
Dhghomon 7d95b0effe
Start display 4 years ago
Dhghomon 931caade8a
Hello world 4 years ago
Dhghomon 8a510fe980
Start book 4 years ago
Dhghomon 347be2cca7
Initial commit 4 years ago