Skip to content

Commit eb935b8

Browse files
committed
core: Use tilde-fences in docs
Backtick fences don't work for some reason
1 parent 4063802 commit eb935b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1531,9 +1531,9 @@ interop, without copying the original string.
15311531
15321532
# Example
15331533
1534-
```
1534+
~~~
15351535
let s = str::as_buf(\"PATH\", { |path_buf| libc::getenv(path_buf) });
1536-
```
1536+
~~~
15371537
"]
15381538
fn as_c_str<T>(s: str, f: fn(*libc::c_char) -> T) -> T unsafe {
15391539
as_buf(s) {|buf| f(buf as *libc::c_char) }

0 commit comments

Comments
 (0)