Commit Graph

179 Commits

Author SHA1 Message Date
simonsan
345514a304
Updating mdbook (#162)
https://blog.rust-lang.org/2021/01/04/mdbook-security-advisory.html
2021-01-05 06:43:55 +01:00
Ivan Tham
e6b427ce38
Use a problem as the intro for newtype pattern (#153)
A problem can highlight some of the use cases of newtype
pattern rather than discussing generally that rust is strongly
typed. Make the user understand the need of newtype.
2021-01-05 04:32:36 +01:00
Christopher
c2321270fa
Use coercion for arguments (#29)
Describe some of the reasons it is considered idiomatic to use `&str` over `&String` in most cases.


Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2021-01-04 09:31:55 +01:00
join3r
1a65aadb31
Fix Spelling mistake (#157) 2021-01-04 05:54:27 +01:00
Ivan Tham
f8d0570103
Link DRY to wikipedia (#154) 2021-01-03 16:38:28 +01:00
Ivan Tham
448af714a1
Table alignment in functional/index.md (#152)
* Right align table in plain text version
  Makes the plain text version easier to read

* Center alignment in mdbook/md
2021-01-03 16:20:00 +01:00
Marco Ieni
7ac0b4f79d
Newtype: Add another article to See Also (#151) 2021-01-03 15:03:23 +01:00
Marco Ieni
d7026aa694
Checking links in markdown files (#150) 2021-01-03 14:55:00 +01:00
Marco Ieni
991ab68d12
Newtype: Convert to list (#148) 2021-01-03 14:16:33 +01:00
Maximilian Goisser
450bf218dc
Add link to derive_more for newtypes (#147) 2021-01-03 12:57:50 +01:00
Thomas Gotwig
6bab5f3f46
Make builder pattern more practical (#90) 2021-01-03 11:35:19 +01:00
Marco Ieni
344b5b8fbd
Fix internal links (#143)
* Rename Readme to index to fix internal book links

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-01-03 10:43:49 +01:00
Marco Ieni
a46baf38b3
README: remove Table of Contents (#144)
It is a duplicate of SUMMARY.md
2021-01-03 10:42:20 +01:00
Riley Shea
4017a73d62
Fix default idiom example (#134)
Before this change, the example code doesn't run on the current rust stable release(1.49).
This is because `Path` inherently has a u8 that requires the sized trait which requires either statics or replacing Path with PathBuf.

After this change, the example code will run "as-is" without warnings or errors.
2021-01-03 08:44:31 +01:00
Ovidiu Curcan
e333d15258
Fix on-stack dispatch example (#137)
A `char` can't be used as a path. You already use the correct `"-"` in the "Disadvantages" example.
Remove `ignore` for the example block
2021-01-03 08:39:53 +01:00
brandondong
acef005895
Update compose structs compile error example for NLL (#136) 2021-01-03 08:34:16 +01:00
simonsan
bff48fae2c
Remove templated late bounds from summary (#142) 2021-01-03 05:35:13 +01:00
Marco Ieni
eefd9ef291
Add explanation how to test the book to contributing (#139) 2021-01-03 03:55:15 +01:00
simonsan
2bc728d1d3
Marking Motivation in Compose Structs as TODO (#140) 2021-01-03 03:43:04 +01:00
Marco Ieni
cae562b311
Remove incomplete phrase (#138) 2021-01-03 03:26:01 +01:00
simonsan
ff9298a607
Remove Entry API due to being a template copy (#133) 2021-01-02 18:28:25 +01:00
simonsan
d55a89ded4
Add direct links due to #130 (#131) 2021-01-02 14:29:07 +01:00
simonsan
c2b307fa9b
Fixing links (#129) 2021-01-02 14:07:14 +01:00
simonsan
5846281ee4
Remove reference to rust_rocks.md (#128)
* Remove reference to rust_rocks.md

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 13:32:30 +01:00
simonsan
9f15f69043
Fix typo in filename (#127) 2021-01-02 13:04:23 +01:00
llogiq
721a6dff86
Added information on --cap-lints to deny-warnings antipattern (#58)
* added information on --cap-lints to deny-warnings antipattern

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 13:03:36 +01:00
simonsan
d89b51f4d8
Adding Contribution guide (#123)
* Add statement for non working examples to template
* Adding contribution guide
* Add statement about wayback machine
2021-01-02 12:58:40 +01:00
simonsan
7fc0ae1cba
Adding Nick Camerons talk at PDXRust 2016 to additional resources section (#102)
* Adding Nick Camerons talk at PDXRust 2016

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 12:56:39 +01:00
simonsan
bc49bb4e37
Fixing outdated link to rust-postgress (#121)
* Fixing outdated link to rust-postgress

Fixes #98

* Remove newline

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 12:41:19 +01:00
simonsan
b6e5414941
Add doc tests to CI (#124)
* rename baz() into main() and vice versa where applicable

Fixes #49
2021-01-02 12:40:52 +01:00
simonsan
b5e755dd80
Fix 404 (#125) 2021-01-02 12:22:09 +01:00
simonsan
de7519f5d9
Add introductions (#117)
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 12:15:33 +01:00
wangcong
66ce03a774
Fix wording in "Fold" pattern (#69)
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-01-01 14:23:29 +01:00
Marco Ieni
85efbe7fc3
add ci (#115) 2021-01-01 12:49:45 +01:00
simonsan
3f3ae4ae73
Adding mdbook configuration and deployment to gh-pages (#111) 2021-01-01 12:27:42 +01:00
Richard Walters
1d606a5116
Fix broken links (#105)
* Fix broken links

Fix broken link from `on-stack-dyn-dispatch.md` to `dtor-finally.md`.
Link to `RAII.md` was broken as well.
2020-12-31 12:41:09 +01:00
Chris Wong
607fcb00c4
Merge pull request #99 from shuternay/master
Fix typos
2020-08-16 21:06:33 +10:00
Sergey Kiselev
8b3cd45d9e Fix typos 2020-08-10 11:57:37 +03:00
Manish Goregaokar
68c8037538
Merge pull request #97 from tkaitchuck/master
Issue #91: Add example for example initialization
2020-07-27 09:20:39 -07:00
Tom Kaitchuck
9a9245cad8
Update rustdoc-init.md
Add comment per feedback
2020-07-26 23:54:23 -07:00
Tom Kaitchuck
7e416d0c99
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:47:06 -07:00
Tom Kaitchuck
1e62aa59f8
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:46:08 -07:00
Tom Kaitchuck
c642018eee
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:45:59 -07:00
Tom Kaitchuck
2dcf58a049
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:45:17 -07:00
Tom Kaitchuck
f62a79db7f
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:44:33 -07:00
Tom Kaitchuck
625b5017da
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:44:24 -07:00
Tom Kaitchuck
f2e471027a
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:44:14 -07:00
Tom Kaitchuck
2a4eaff0db
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:44:06 -07:00
Tom Kaitchuck
1571a7ae19
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:43:59 -07:00
Tom Kaitchuck
a2988fe94e
Update idioms/rustdoc-init.md
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-26 23:43:51 -07:00