bors
be3d390cf5
Auto merge of #29050 - rkruppe:dec2flt-lonely-sign, r=alexcrichton
...
Fixes #29042
2015-10-15 14:43:47 +00:00
bors
9c9615eb6f
Auto merge of #29070 - Manishearth:rollup, r=Manishearth
...
- Successful merges: #28906 , #29022 , #29047 , #29058 , #29059 , #29060 , #29062 , #29066 , #29068
- Failed merges:
2015-10-15 09:04:34 +00:00
Manish Goregaokar
d90f8f912b
Rollup merge of #29022 - apasel422:spell, r=steveklabnik
...
r? @steveklabnik
2015-10-15 13:41:32 +05:30
bors
fa9a421394
Auto merge of #28921 - petrochenkov:intconv, r=alexcrichton
...
Part of https://github.com/rust-lang/rfcs/pull/1218#issuecomment-146615171
r? @aturon
2015-10-15 07:11:33 +00:00
Vadim Petrochenkov
6f3e84dbe9
Implement conversion traits for primitive integer types
2015-10-15 05:23:44 +03:00
Robin Kruppe
71dcd7f70c
Reject "+" and "-" when parsing floats.
...
Fixes #29042
2015-10-14 19:55:59 +02:00
Steve Klabnik
70c70b739f
Document the free functions of std::iter
...
Flesh the docs out with examples.
2015-10-13 14:46:17 -04:00
Andrew Paseltiner
1162b3752c
Correct spelling in docs
2015-10-13 09:44:11 -04:00
bors
8aa621a996
Auto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton
...
This replaces what was there with a comprehensive overview.
Thanks to @hoverbear for suggesting that these docs needed improvement.
2015-10-12 13:40:46 +00:00
Steve Klabnik
1fbf8bb664
Write better module-level docs for std::iter
...
This replaces what was there with a comprehensive overview.
2015-10-12 09:40:48 -04:00
bors
84ff665558
Auto merge of #28964 - eminence:docfix, r=sfackler
...
r? @steveklabnik
2015-10-11 14:32:45 +00:00
Ulrik Sverdrup
4dee42fe58
core: Update the safety docs for core::ptr::write
...
Updated to reflect that not dropping a value is safe (but discouraged).
2015-10-11 13:40:47 +02:00
Andrew Chin
dce58baff0
Trivial typo fix: from_utrf8 should be from_utf8
2015-10-10 23:33:43 -04:00
Steve Klabnik
ef9e542b45
Improve docs for write!/writeln! macros
2015-10-09 13:53:25 -04:00
bors
d0cae14f66
Auto merge of #28900 - cristicbz:typos, r=alexcrichton
...
I found these automatically, but fixed them manually to ensure the semantics are correct. I know things like these are hardly important, since they only marginally improve clarity. But at least for me typos and simple grammatical errors trigger an---unjustified---sense of unprofessionalism, despite the fact that I make them all the time and I understand that they're the sort of thing that is bound to slip through review.
Anyway, to find most of these I used:
* `ag '.*//.*(\b[A-Za-z]{2,}\b) \1\b'` for repeated words
* `ag '\b(the|this|those|these|a|it) (a|the|this|those|these|it)\b'` to find constructs like 'the this' etc. many false positives, but not too hard to scroll through them to actually find the mistakes.
* `cat ../../typos.txt | paste -d'|' - - - - - - - - - - - - - - - - - - - - - - | tr '\n' '\0' | xargs -0 -P4 -n1 ag`. Hacky way to find misspellings, but it works ok. I got `typos.txt` from [Wikipedia](https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines )
* `ag '.*//.* a ([ae][a-z]|(o[^n])|(i[a-rt-z]))'` to find places where 'a' was followed by a vowel (requiring 'an' instead).
I also used a handful more one off regexes that are too boring to reproduce here.
2015-10-08 22:40:50 +00:00
bors
e38210b195
Auto merge of #28913 - steveklabnik:rollup, r=steveklabnik
...
- Successful merges: #28621 , #28872 , #28893 , #28904 , #28905 , #28908 , #28910
- Failed merges: #28906
2015-10-08 19:05:54 +00:00
Cristi Cobzarenco
4b308b44e1
typos: fix a grabbag of typos all over the place
2015-10-08 19:49:31 +01:00
Steve Klabnik
1625c133de
Rollup merge of #28910 - frewsxcv:patch-26, r=steveklabnik
2015-10-08 13:54:05 -04:00
bors
64c4b51dd6
Auto merge of #28826 - arthurprs:leading_plus, r=alexcrichton
...
Closes #27580
2015-10-08 17:19:59 +00:00
bors
b75fe81055
Auto merge of #28897 - steveklabnik:rollup, r=steveklabnik
...
- Successful merges: #28836 , #28856 , #28874 , #28876 , #28878 , #28880 , #28882 , #28885 , #28889 , #28896
- Failed merges:
2015-10-08 12:15:47 +00:00
Corey Farwell
f18d1ad324
Format code-like text in Iterator::cloned doc-comment
2015-10-08 08:00:02 -04:00
Steve Klabnik
0fbf7eaf81
Rollup merge of #28896 - mkpankov:core-fmt, r=nrc
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/28896 )
<!-- Reviewable:end -->
2015-10-07 18:18:38 -04:00
Michael Pankov
11a7773a3a
Fix comment gone astray
2015-10-08 01:08:33 +03:00
Michael Pankov
3fbbee6ad5
rustfmt hash submodule
2015-10-08 01:03:52 +03:00
Michael Pankov
17033a62b4
rustfmt part of libcore/fmt
...
Rest is blocked by https://github.com/nrc/rustfmt/issues/413
2015-10-08 01:02:45 +03:00
Cristi Cobzarenco
e8021808cb
core: Derive Default for Wrapping<T>
2015-10-07 21:31:36 +01:00
Corey Farwell
e84461a5c5
Alter formatting for words in Option::cloned doc comment
2015-10-07 09:38:36 -04:00
bors
0ea1305fad
Auto merge of #28877 - sourcefrog:doc-fuse, r=alexcrichton
2015-10-07 07:41:36 +00:00
Martin Pool
22404e1f47
Link from Fuse type docstring to iter.fuse that creates them
2015-10-06 19:29:27 -07:00
Jed Davis
da001b8730
Fix doc typo in num::{f32,f64}.
2015-10-05 16:51:43 -07:00
arthurprs
123a83326f
integer parsing should accept leading plus
2015-10-03 12:56:38 -03:00
bors
f492ec4bf4
Auto merge of #28818 - Stebalien:fix-iter-chain-order, r=alexcrichton
...
part of #28810
2015-10-03 06:03:50 +00:00
Steve Klabnik
c3c5de1b98
Rollup merge of #28812 - steveklabnik:improve_str_from_utf8_docs, r=brson
...
Our docs were very basic for the various versions of from_utf8, so
this commit beefs them up.
It also improves docs for the &str variant's error, Utf8Error.
2015-10-02 20:38:23 -04:00
Steve Klabnik
4d73da92f0
Improve documentation for the from_utf8 family
...
Our docs were very basic for the various versions of from_utf8, so
this commit beefs them up.
It also improves docs for the &str variant's error, Utf8Error.
2015-10-02 19:42:25 -04:00
bors
bfb26033af
Auto merge of #28662 - semmaz:fmt-debug, r=alexcrichton
...
fixes #26920
2015-10-02 22:49:37 +00:00
Steven Allen
6999c421ef
libcore: Chain must exhaust a before b.
...
part of #28810
2015-10-02 18:41:06 -04:00
Simon Mazur
0294098d8f
Implement size_hint
for EscapeUnicode
2015-10-01 20:33:43 +03:00
Björn Steinbrink
8a959ad447
Remove one level of indirection for slice-based PartialEq impls
...
Using the comparison operators already refs the operands, so doing it
ourselves as well just adds an unnecessary level of indirection.
2015-10-01 18:17:49 +02:00
bors
8719f504ee
Auto merge of #28780 - steveklabnik:doc_from_str, r=alexcrichton
...
@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.
2015-10-01 11:18:48 +00:00
Steve Klabnik
8382bc915c
Rollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton
...
Fixes #28166
2015-09-30 18:20:03 -04:00
Steve Klabnik
80130005da
Add some docs for FromString::from_str
...
@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.
2015-09-30 17:42:41 -04:00
Steve Klabnik
27254bc4aa
Rollup merge of #28754 - luser:fix-rustdoc-module-links, r=Manishearth
...
The links in the rustdoc for several places in fmt were trying to link to
the std::fmt module but actually linking to std, which was confusing.
While trying to figure out why I noticed that the documentation chapter of
the Rust book has examples that show this same bug (although it doesn't seem
widespread in practice).
r? @steveklabnik
2015-09-30 14:51:54 -04:00
Ted Mielczarek
49fa11c5a5
Fix module links from core::fmt::* to go to std::fmt
2015-09-30 13:24:39 -04:00
Steve Klabnik
3e9b993925
Clarify logic instead of using 'vice versa'
...
Fixes #28166
2015-09-30 13:24:28 -04:00
Ted Mielczarek
73bd0ba91e
Fix module links in std::fmt and the Rust book's documentation chapter.
...
The links in the rustdoc for several places in fmt were trying to link to
the std::fmt module but actually linking to std, which was confusing.
While trying to figure out why I noticed that the documentation chapter of
the Rust book has examples that show this same bug (although it doesn't seem
widespread in practice).
2015-09-30 12:33:38 -04:00
bors
437d70a54b
Auto merge of #28738 - apasel422:peekable, r=alexcrichton
2015-09-30 15:22:17 +00:00
Simon Mazur
d2d08721be
Implement size_hint
for EscapeDefault
2015-09-30 18:05:09 +03:00
bors
3e6d7243ae
Auto merge of #28731 - bluss:by-ref, r=alexcrichton
...
Remove redundant uses of Iterator::by_ref()
2015-09-30 11:03:13 +00:00
Andrew Paseltiner
532ee3c6d6
Derive Clone
for Peekable
2015-09-29 18:35:33 -04:00
Ulrik Sverdrup
e2aa82c413
Remove redundant uses of Iterator::by_ref()
2015-09-29 19:20:18 +02:00