File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ libraries:
408
408
* Static - `#[link(name = "my_build_dependency", kind = "static")]`
409
409
* Frameworks - `#[link(name = "CoreFoundation", kind = "framework")]`
410
410
411
- Note that frameworks are only available on OSX targets.
411
+ Note that frameworks are only available on macOS targets.
412
412
413
413
The different `kind` values are meant to differentiate how the native library
414
414
participates in linkage. From a linkage perspective, the Rust compiler creates
@@ -437,7 +437,7 @@ A few examples of how this model can be used are:
437
437
is included in a final target (like a binary), the native library will be
438
438
linked in.
439
439
440
- On OSX , frameworks behave with the same semantics as a dynamic library.
440
+ On macOS , frameworks behave with the same semantics as a dynamic library.
441
441
442
442
# Unsafe blocks
443
443
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ fn main() {
167
167
}
168
168
```
169
169
170
- Save the file, and go back to your terminal window. On Linux or OSX , enter the
170
+ Save the file, and go back to your terminal window. On Linux or macOS , enter the
171
171
following commands:
172
172
173
173
``` bash
@@ -253,7 +253,7 @@ $ rustc main.rs
253
253
254
254
If you come from a C or C++ background, you'll notice that this is similar to
255
255
` gcc ` or ` clang ` . After compiling successfully, Rust should output a binary
256
- executable, which you can see on Linux or OSX by entering the ` ls ` command in
256
+ executable, which you can see on Linux or macOS by entering the ` ls ` command in
257
257
your shell as follows:
258
258
259
259
``` bash
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ command line using `--cfg` (e.g. `rustc main.rs --cfg foo --cfg 'bar="baz"'`).
219
219
Rust code then checks for their presence using the ` #[cfg(...)] ` attribute:
220
220
221
221
```
222
- // The function is only included in the build when compiling for OSX
222
+ // The function is only included in the build when compiling for macOS
223
223
#[cfg(target_os = "macos")]
224
224
fn macos_only() {
225
225
// ...
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ be ignored in favor of only building the artifacts specified by command line.
46
46
* ` --crate-type=cdylib ` , ` #[crate_type = "cdylib"] ` - A dynamic system
47
47
library will be produced. This is used when compiling Rust code as
48
48
a dynamic library to be loaded from another language. This output type will
49
- create ` *.so ` files on Linux, ` *.dylib ` files on OSX , and ` *.dll ` files on
49
+ create ` *.so ` files on Linux, ` *.dylib ` files on macOS , and ` *.dll ` files on
50
50
Windows.
51
51
52
52
* ` --crate-type=rlib ` , ` #[crate_type = "rlib"] ` - A "Rust library" file will be
You can’t perform that action at this time.
0 commit comments