Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
585c7e2a
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,发现更多精彩内容 >>
提交
585c7e2a
编写于
4月 30, 2015
作者:
S
Steve Klabnik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix broken links in the book.
上级
2f613bfa
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
8 deletion
+6
-8
src/doc/trpl/attributes.md
src/doc/trpl/attributes.md
+1
-1
src/doc/trpl/const-and-static.md
src/doc/trpl/const-and-static.md
+3
-5
src/doc/trpl/raw-pointers.md
src/doc/trpl/raw-pointers.md
+1
-1
src/doc/trpl/unsafe.md
src/doc/trpl/unsafe.md
+1
-1
未找到文件。
src/doc/trpl/attributes.md
浏览文件 @
585c7e2a
...
...
@@ -67,4 +67,4 @@ Rust attributes are used for a number of different things. There is a full list
of attributes
[
in the reference
][
reference
]
. Currently, you are not allowed to
create your own attributes, the Rust compiler defines them.
[
reference
]:
reference.html#attributes
[
reference
]:
../
reference.html#attributes
src/doc/trpl/const-and-static.md
浏览文件 @
585c7e2a
...
...
@@ -19,9 +19,9 @@ this reason.
# `static`
Rust provides a ‘global variable’ sort of facility in static items. They’re
similar to
[
constants
][
const
]
, but static items aren’t inlined upon use. This
means that there is only one instance for each value, and it’s at a fixed
location in
memory.
similar to
constants, but static items aren’t inlined upon use. This means that
there is only one instance for each value, and it’s at a fixed location in
memory.
Here’s an example:
...
...
@@ -29,8 +29,6 @@ Here’s an example:
static
N
:
i32
=
5
;
```
[
const
]:
const.html
Unlike
[
`let`
][
let
]
bindings, you must annotate the type of a
`static`
.
[
let
]:
variable-bindings.html
...
...
src/doc/trpl/raw-pointers.md
浏览文件 @
585c7e2a
...
...
@@ -80,7 +80,7 @@ Raw pointers are useful for FFI: Rust’s `*const T` and `*mut T` are similar to
C’s
`const T*`
and
`T*`
, respectfully. For more about this use, consult the
[
FFI chapter
][
ffi
]
.
[
ffi
]:
ffi.
md
[
ffi
]:
ffi.
html
# References and raw pointers
...
...
src/doc/trpl/unsafe.md
浏览文件 @
585c7e2a
...
...
@@ -101,7 +101,7 @@ Rust has a feature called ‘`static mut`’ which allows for mutable global sta
Doing so can cause a data race, and as such is inherently not safe. For more
details, see the
[
static
][
static
]
section of the book.
[
static
]:
static.html
[
static
]:
const-and-static.html#static
## Dereference a raw pointer
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录