Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
7c75608c
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7c75608c
编写于
1月 27, 2017
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
差异文件
Rollup merge of #39344 - ollie27:links, r=steveklabnik
Fix a few links in the docs r? @steveklabnik
上级
915242af
09b3903a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
10 deletion
+11
-10
src/doc/book/ffi.md
src/doc/book/ffi.md
+1
-1
src/liballoc/arc.rs
src/liballoc/arc.rs
+1
-1
src/libcore/hash/mod.rs
src/libcore/hash/mod.rs
+1
-0
src/libcore/iter/iterator.rs
src/libcore/iter/iterator.rs
+3
-3
src/libcore/sync/atomic.rs
src/libcore/sync/atomic.rs
+2
-2
src/libstd/env.rs
src/libstd/env.rs
+1
-1
src/libstd/thread/mod.rs
src/libstd/thread/mod.rs
+2
-2
未找到文件。
src/doc/book/ffi.md
浏览文件 @
7c75608c
...
...
@@ -710,7 +710,7 @@ Please note that [`catch_unwind()`] will only catch unwinding panics, not
those who abort the process. See the documentation of [
`catch_unwind()`
]
for more information.
[
`catch_unwind()`
]:
https://doc.rust-lang.org
/std/panic/fn.catch_unwind.html
[
`catch_unwind()`
]:
..
/std/panic/fn.catch_unwind.html
# Representing opaque structs
...
...
src/liballoc/arc.rs
浏览文件 @
7c75608c
...
...
@@ -59,7 +59,7 @@
/// as long as `T` implements [`Send`] and [`Sync`][sync]. The disadvantage is
/// that atomic operations are more expensive than ordinary memory accesses.
/// If you are not sharing reference-counted values between threads, consider
/// using [`rc::Rc`] for lower overhead. [`Rc`] is a safe default, because
/// using [`rc::Rc`]
[`Rc`]
for lower overhead. [`Rc`] is a safe default, because
/// the compiler will catch any attempt to send an [`Rc`] between threads.
/// However, a library might choose `Arc` in order to give library consumers
/// more flexibility.
...
...
src/libcore/hash/mod.rs
浏览文件 @
7c75608c
...
...
@@ -307,6 +307,7 @@ pub trait BuildHasher {
/// [`BuildHasher`]: trait.BuildHasher.html
/// [`Default`]: ../default/trait.Default.html
/// [`Hasher`]: trait.Hasher.html
/// [`HashMap`]: ../../std/collections/struct.HashMap.html
#[stable(since
=
"1.7.0"
,
feature
=
"build_hasher"
)]
pub
struct
BuildHasherDefault
<
H
>
(
marker
::
PhantomData
<
H
>
);
...
...
src/libcore/iter/iterator.rs
浏览文件 @
7c75608c
...
...
@@ -1108,9 +1108,9 @@ fn by_ref(&mut self) -> &mut Self where Self: Sized { self }
///
/// One of the keys to `collect()`'s power is that many things you might
/// not think of as 'collections' actually are. For example, a [`String`]
/// is a collection of [`char`]s. And a collection of
[`Result<T, E>`] can
///
be thought of as single [`Result`]`<Collection<T>, E>`. See the examples
/// below for more.
/// is a collection of [`char`]s. And a collection of
///
[`Result<T, E>`][`Result`] can be thought of as single
///
[`Result`]`<Collection<T>, E>`. See the examples
below for more.
///
/// Because `collect()` is so general, it can cause problems with type
/// inference. As such, `collect()` is one of the few times you'll see
...
...
src/libcore/sync/atomic.rs
浏览文件 @
7c75608c
...
...
@@ -24,7 +24,7 @@
//! same as [LLVM atomic orderings][1]. For more information see the [nomicon][2].
//!
//! [1]: http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations
//! [2]:
https://doc.rust-lang.org
/nomicon/atomics.html
//! [2]:
../../..
/nomicon/atomics.html
//!
//! Atomic variables are safe to share between threads (they implement `Sync`)
//! but they do not themselves provide the mechanism for sharing and follow the
...
...
@@ -144,7 +144,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
/// LLVM's](http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations).
///
/// For more information see the [nomicon][1].
/// [1]:
https://doc.rust-lang.org
/nomicon/atomics.html
/// [1]:
../../..
/nomicon/atomics.html
#[stable(feature
=
"rust1"
,
since
=
"1.0.0"
)]
#[derive(Copy,
Clone,
Debug)]
pub
enum
Ordering
{
...
...
src/libstd/env.rs
浏览文件 @
7c75608c
...
...
@@ -222,7 +222,7 @@ fn _var_os(key: &OsStr) -> Option<OsString> {
/// Possible errors from the [`env::var`] function.
///
/// [
env::var
]: fn.var.html
/// [
`env::var`
]: fn.var.html
#[derive(Debug,
PartialEq,
Eq,
Clone)]
#[stable(feature
=
"env"
,
since
=
"1.0.0"
)]
pub
enum
VarError
{
...
...
src/libstd/thread/mod.rs
浏览文件 @
7c75608c
...
...
@@ -391,7 +391,7 @@ pub fn spawn<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
/// [`JoinHandle`]: ../../std/thread/struct.JoinHandle.html
/// [`join`]: ../../std/thread/struct.JoinHandle.html#method.join
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
/// [`panic
!
`]: ../../std/macro.panic.html
/// [`panic`]: ../../std/macro.panic.html
/// [`Builder::spawn`]: ../../std/thread/struct.Builder.html#method.spawn
///
/// # Examples
...
...
@@ -974,7 +974,7 @@ pub fn thread(&self) -> &Thread {
/// to [`panic`].
///
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
/// [`panic
!
`]: ../../std/macro.panic.html
/// [`panic`]: ../../std/macro.panic.html
///
/// # Examples
///
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录