Tristan Otterpohl
21a29edf52
Fixed minor typos, formatting, grammar issues, and outdated link ( #318 )
...
* Fixed minor typos, formatting, grammar issues, and outdated link
2022-08-01 04:39:54 +02:00
Carson Riker
c7be15d387
Modified example sentences to make sense ( #311 )
2022-07-02 15:09:56 +02:00
Marco Ieni
b440ed2dba
idioms: intro improvements ( #304 )
2022-03-17 13:54:57 +01:00
Andrew Sonin
482c2b8720
Fix typo ( #300 )
...
`Iterator::filter_map` is analogous to `Iterator::map`, not `Iterator::flat_map`
2022-03-09 09:08:25 +01:00
alsotang
dca0dfdc29
Update coercion-arguments.md ( #286 )
...
align the type
2021-12-16 16:10:24 +01:00
♫ Christian Krause ♫
fa8e72298e
[idioms/ctor] adds default constructor section ( #280 )
...
Replaced the `Vec` example with `Second`. This is easier to
comprehend compared to the more complex `Vec` example. It's also
testable because it doesn't rely on `RawVec`.
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-11-21 23:37:25 +01:00
Marco Ieni
66d7e6c7da
deref: fix typo ( #275 )
2021-10-02 11:52:00 +02:00
Russell Cohen
567a1f16fb
Updated extensibility to discuss non_exhaustive ( #135 )
2021-09-01 02:28:30 +02:00
poly000
9834f5719b
Fixing grammar and spelling mistakes ( #270 )
2021-08-25 04:43:23 +02:00
Imbolc
6a7088c25c
Fix typo ( #266 )
2021-07-27 09:11:36 +02:00
Imbolc
c23e006208
improve Default
trait example ( #267 )
2021-07-26 20:12:45 +02:00
Ivan Tham
d30b026811
Note on Vec ( #262 )
...
Fix #261
2021-07-09 00:47:12 +02:00
koalp
b809265f54
Fix internal links II ( #256 )
2021-04-21 18:56:20 +02:00
simonsan
a1523995ec
Fix internal links ( #255 )
2021-04-20 22:18:23 +02:00
Wenxuan
22de99a82b
Improve mem-replace examples ( #253 )
2021-04-13 13:27:42 +02:00
simonsan
c9c5f70024
Adding 'clone to satisfy the borrow checker' anti-pattern ( #110 )
2021-03-29 23:51:47 +02:00
Gianluca Recchia
249a154e81
Improve wording and fix typo ( #242 )
2021-02-28 23:46:55 +01:00
simonsan
606bcffa44
Structural changes to patterns subfolder ( #219 )
2021-02-25 20:56:37 +01:00
Michael Bryan
96fa89b923
Revise the FFI chapters ( #190 )
...
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-02-24 22:49:30 +01:00
shorii
dd265b1ec1
Fix typo ('indrection' to 'indirection') ( #218 )
2021-02-21 07:29:54 +01:00
follower
4d78ffd3c3
Typo: Fix missing space between words. ( #217 )
2021-02-10 12:06:10 +01:00
simonsan
2cd70a552d
Shorten lines to line-length 80 ( #208 )
2021-01-22 00:00:02 +01:00
Cassandra McCarthy
9c33b27658
Use more inclusive language in some parts ( #203 )
2021-01-15 22:44:03 +01:00
vent
f78e3e3166
Talk about mem::take instead of mem::replace ( #200 )
...
* Talk about std::take instead of std::replace
* Mention mem::replace in mem::take idiom
* Fix example code so it can compile and execute
* Clarify the need for Default in disadvantages
* Update idioms/mem-take.md
* Add note tag to section on mem::replace
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
* Follow on from previous paragraph in mem::take
* Change title to include mem::take
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2021-01-13 23:08:00 +01:00
Ped
264cddf06e
Fix typo ("desctructors" to "destructors") ( #195 )
2021-01-09 18:49:11 +01:00
Ped
22e8405b26
Fix typo ("anways" to "anyways") ( #193 )
2021-01-09 14:42:15 +01:00
simonsan
f61f2f40f0
Fix lines to 150 line length for better tracking of future changes ( #189 )
2021-01-08 08:59:46 +01:00
Andreas Schmidt
a0e765179d
Add note on #[non_exhaustive] for enums ( #168 )
...
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-06 15:18:34 +01:00
Marco Ieni
76ae5bd896
Reduce long lines ( #176 )
2021-01-06 14:58:26 +01:00
Marco Ieni
5fedf5aa29
Markdownlint: Do not allow tabs in code blocks ( #178 )
2021-01-06 14:55:55 +01:00
jhwgh1968
11a4b712c0
Several FFI Sections: Strings, Errors, and API Design ( #106 )
2021-01-05 16:44:31 +01:00
Weipin Xia
501ae92a43
Fix missing argument in rustdoc-init.md ( #166 )
2021-01-05 16:02:16 +01:00
Takashi Idobe
60946dd8c7
Add markdownlint to CI ( #164 )
2021-01-05 15:57:07 +01:00
Takashi Idobe
5f1425d7ed
Apply markdownlint to project ( #163 )
2021-01-05 15:36:20 +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
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
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
Marco Ieni
cae562b311
Remove incomplete phrase ( #138 )
2021-01-03 03:26:01 +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
de7519f5d9
Add introductions ( #117 )
...
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2021-01-02 12:15:33 +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
Sergey Kiselev
8b3cd45d9e
Fix typos
2020-08-10 11:57:37 +03: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