Skip to content

Commit 1e47b71

Browse files
committed
docs: fix UPGRADING.md code block languages and bullets
1 parent 67bb3e4 commit 1e47b71

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

UPGRADING.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ match device.build_output_stream(&config, data_fn, err_fn, None) {
137137

138138
Update these dependencies if you use them directly:
139139

140-
```rust
140+
```toml
141141
[dependencies]
142142
cpal = "0.17"
143143

@@ -153,10 +153,8 @@ audio_thread_priority = "0.34" # All platforms
153153

154154
**What changed:** Device enumeration now returns all devices from `aplay -L`. v0.16 had a regression that only returned card names, missing all device variants.
155155

156-
```rust
157-
# v0.16: Only card names ("Loopback", "HDA Intel PCH")
158-
# v0.17: All aplay -L devices (default, hw:CARD=X,DEV=Y, plughw:, front:, surround51:, etc.)
159-
```
156+
* v0.16: Only card names ("Loopback", "HDA Intel PCH")
157+
* v0.17: All aplay -L devices (default, hw:CARD=X,DEV=Y, plughw:, front:, surround51:, etc.)
160158

161159
**Impact:** Many more devices will be enumerated. Device names/IDs will be much more detailed. Update any code that matches specific ALSA device names.
162160

@@ -166,7 +164,7 @@ audio_thread_priority = "0.34" # All platforms
166164

167165
**What changed:** The optional `wee_alloc` feature was removed for security reasons.
168166

169-
```rust
167+
```toml
170168
# Before (v0.16)
171169
cpal = { version = "0.16", features = ["wasm-bindgen", "wee_alloc"] }
172170

0 commit comments

Comments
 (0)