File tree 3 files changed +3
-19
lines changed
3 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -3168,7 +3168,7 @@ Raw pointers (`*`)
3168
3168
: Raw pointers are pointers without safety or liveness guarantees.
3169
3169
Raw pointers are written ` *content ` ,
3170
3170
for example ` *int ` means a raw pointer to an integer.
3171
- Copying or dropping a raw pointer is has no effect on the lifecycle of any other value.
3171
+ Copying or dropping a raw pointer has no effect on the lifecycle of any other value.
3172
3172
Dereferencing a raw pointer or converting it to any other pointer type is an [ ` unsafe ` operation] ( #unsafe-functions ) .
3173
3173
Raw pointers are generally discouraged in Rust code;
3174
3174
they exist to support interoperability with foreign code,
Original file line number Diff line number Diff line change @@ -151,22 +151,6 @@ declaration to appear at the top level of the file: all statements must
151
151
live inside a function. Rust programs can also be compiled as
152
152
libraries, and included in other programs.
153
153
154
- ## Using the rust tool
155
-
156
- While using ` rustc ` directly to generate your executables, and then
157
- running them manually is a perfectly valid way to test your code,
158
- for smaller projects, prototypes, or if you're a beginner, it might be
159
- more convenient to use the ` rust ` tool.
160
-
161
- The ` rust ` tool provides central access to the other rust tools,
162
- as well as handy shortcuts for directly running source files.
163
- For example, if you have a file ` foo.rs ` in your current directory,
164
- ` rust run foo.rs ` would attempt to compile it and, if successful,
165
- directly run the resulting binary.
166
-
167
- To get a list of all available commands, simply call ` rust ` without any
168
- argument.
169
-
170
154
## Editing Rust code
171
155
172
156
There are vim highlighting and indentation scripts in the Rust source
Original file line number Diff line number Diff line change 12
12
13
13
This module defines the Rust interface for synchronous I/O.
14
14
It models byte-oriented input and output with the Reader and Writer traits.
15
- Types that implement both `Reader` and `Writer` and called 'streams',
16
- and automatically implement trait `Stream`.
15
+ Types that implement both `Reader` and `Writer` are called 'streams',
16
+ and automatically implement the `Stream` trait .
17
17
Implementations are provided for common I/O streams like
18
18
file, TCP, UDP, Unix domain sockets.
19
19
Readers and Writers may be composed to add capabilities like string
You can’t perform that action at this time.
0 commit comments