Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates the documentation for result::collect() and option::collect() to use the new-style syntax for vectors, instead of the old ~[]. Also updates the code blocks for these docs so they will be tested automatically. closes #14991
- Loading branch information
1 parent
1bb42e5
commit feceb12
Showing
2 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feceb12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from huonw
at nathantypanski@feceb12
feceb12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nathantypanski/rust/collect-docs = feceb12 into auto
feceb12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nathantypanski/rust/collect-docs = feceb12 merged ok, testing candidate = 410d70b
feceb12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/6274
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/6273
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/5369
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/5378
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/6371
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/5460
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/5467
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/6374
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/5459
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/5464
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/5525
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/3260
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/6364
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/5475
feceb12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 410d70b