Skip to content

Commit dfb25a7

Browse files
committed
Fix windows_subsystem usage description.
1 parent b8e2296 commit dfb25a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/2017-06-08-Rust-1.18.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ For our Windows users, Rust 1.18.0 has [a new attribute,
7777
works like this:
7878

7979
```rust
80-
#![windows_subsystem(console)]
81-
#![windows_subsystem(windows)]
80+
#![windows_subsystem = "console"]
81+
#![windows_subsystem = "windows"]
8282
```
8383

8484
These control the [`/SUBSYSTEM` flag](https://msdn.microsoft.com/en-us/library/fcc1zstk.aspx)
85-
in the linker. For now, only `console` and `windows` are supported.
85+
in the linker. For now, only `"console"` and `"windows"` are supported.
8686

8787
When is this useful? In the simplest terms, if you're developing a graphical
88-
application, and do not specify `windows`, a console window would flash up upon
88+
application, and do not specify `"windows"`, a console window would flash up upon
8989
your application's start. With this flag, it won't.
9090

9191
Finally, Rust's tuples, enum variant fields, and structs (without `#[repr]`) have

0 commit comments

Comments
 (0)