You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -42,7 +42,7 @@ Let the fact that this is an easily countable number be a warning.
42
42
43
43
## Does it run on Windows?
44
44
45
-
Yes. All development happens in lock-step on all 3 target platforms. Using MinGW, not Cygwin. Note that the windows implementation currently has some limitations: in particular 64-bit build is [not fully supported yet][win64], and all executables created by rustc [depend on libgcc DLL at runtime][libgcc].
45
+
Yes. All development happens in lockstep on all 3 target platforms (using MinGW, not Cygwin). Note that the Windows implementation currently has some limitations; in particular, the 64-bit build is [not fully supported yet][win64], and all executables created by rustc [depend on libgcc DLL at runtime][libgcc].
@@ -104,7 +104,7 @@ Similar to the reasoning about default-sync: it wires fewer assumptions into the
104
104
105
105
## Why are strings UTF-8 by default? Why not UCS2 or UCS4?
106
106
107
-
The `str` type is UTF-8 because we observe more text in the wild in this encoding -- particularly in network transmissions, which are endian-agnostic -- and we think it's best that the default treatment of I/O not involve having to recode codepoints in each direction.
107
+
The `str` type is UTF-8 because we observe more text in the wild in this encoding – particularly in network transmissions, which are endian-agnostic – and we think it's best that the default treatment of I/O not involve having to recode codepoints in each direction.
108
108
109
109
This does mean that indexed access to a Unicode codepoint inside a `str` value is an O(n) operation. On the one hand, this is clearly undesirable; on the other hand, this problem is full of trade-offs and we'd like to point a few important qualifications:
110
110
@@ -145,23 +145,25 @@ For simplicity, we do not plan to do so. Implementing automatic semicolon insert
145
145
146
146
## How do I get my program to display the output of logging macros?
147
147
148
-
**Short answer** set the RUST_LOG environment variable to the name of your source file, sans extension.
148
+
**Short Answer**: Set the `RUST_LOG` environment variable to the name of your source file, sans extension.
149
149
150
150
```sh
151
151
rustc hello.rs
152
152
export RUST_LOG=hello
153
153
./hello
154
154
```
155
155
156
-
**Long answer**RUST_LOG takes a 'logging spec' that consists of a
156
+
**Long Answer**: `RUST_LOG` takes a 'logging spec' that consists of a
157
157
comma-separated list of paths, where a path consists of the crate name and
158
-
sequence of module names, each separated by double-colons. For standalone .rs
159
-
files the crate is implicitly named after the source file, so in the above
160
-
example we were setting RUST_LOG to the name of the hello crate. Multiple paths
158
+
sequence of module names, each separated by double-colons. For standalone `.rs`
159
+
files, the crate is implicitly named after the source file, so in the above
160
+
example we were setting `RUST_LOG` to the name of the hello crate. Multiple paths
161
161
can be combined to control the exact logging you want to see. For example, when
0 commit comments