Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
44d4889b
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,发现更多精彩内容 >>
提交
44d4889b
编写于
2月 14, 2012
作者:
G
Graydon Hoare
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1842 from uasi/fix-typo
Fix typos in the reference manual
上级
d5e7f0d1
6d1d9a02
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
doc/rust.md
doc/rust.md
+5
-5
未找到文件。
doc/rust.md
浏览文件 @
44d4889b
...
...
@@ -1032,7 +1032,7 @@ accessed through the components `x` and `y`, and laid out in memory with the
An _enumeration item_ simultaneously declares a new nominal
[
enumerated type
](
#enumerated-types
)
as well as a set of
*constructors*
that
can be used to create or pattern-match values of the corresponding enumerated
type. Note that
`enum`
previously was refered to as a
`tag`
, however this
type. Note that
`enum`
previously was refer
r
ed to as a
`tag`
, however this
definition has been deprecated. While
`tag`
is no longer used, the two are
synonymous.
...
...
@@ -1622,7 +1622,7 @@ fn avg(v: [float]) -> float {
~~~~
A cast is a
*trivial cast*
iff the type of the casted expression and the
target type are identical after replacing all occurences of
`int`
,
`uint`
,
target type are identical after replacing all occur
r
ences of
`int`
,
`uint`
,
`float`
with their machine type equivalents of the target architecture in both
types.
...
...
@@ -3131,7 +3131,7 @@ state. In this state it executes the statements of its entry function, and any
functions called by the entry function.
A task may transition from the
*running*
state to the
*blocked*
state any time
it makes a blocking rec
ie
ve call on a port, or attempts a rate-limited
it makes a blocking rec
ei
ve call on a port, or attempts a rate-limited
blocking send on a channel. When the communication expression can be completed
-- when a message arrives at a sender, or a queue drains sufficiently to
complete a rate-limited send -- then the blocked task will unblock and
...
...
@@ -3302,7 +3302,7 @@ As an example, to see all the logs generated by the compiler, you would set
you would set it to
`rustc::metadata::creader`
. To see just error logging
use
`rustc=0`
.
Note that when compiling either
`.rs`
or
`.rc`
files that don't specif
i
y a
Note that when compiling either
`.rs`
or
`.rc`
files that don't specify a
crate name the crate is given a default name that matches the source file,
with the extension removed. In that case, to turn on logging for a program
compiled from, e.g.
`helloworld.rs`
,
`RUST_LOG`
should be set to
`helloworld`
.
...
...
@@ -3390,7 +3390,7 @@ have come and gone during the course of Rust's development:
*
The Newsqueak (1988), Alef (1995), and Limbo (1996) family. These
languages were developed by Rob Pike, Phil Winterbottom, Sean Dorward and
others in their group at Bell labs Computing Sciences Reserch Center
others in their group at Bell labs Computing Sciences Rese
a
rch Center
(Murray Hill, NJ, USA).
*
The Napier (1985) and Napier88 (1988) family. These languages were
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录