From eb935b8fcbe1ceb128797aa574e0c1a332a6a14e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 14 Apr 2012 15:40:18 -0700 Subject: [PATCH] core: Use tilde-fences in docs Backtick fences don't work for some reason --- src/libcore/str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 5c4d46a89aa..0a5ff9935dc 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1531,9 +1531,9 @@ interop, without copying the original string. # Example -``` +~~~ let s = str::as_buf(\"PATH\", { |path_buf| libc::getenv(path_buf) }); -``` +~~~ "] fn as_c_str(s: str, f: fn(*libc::c_char) -> T) -> T unsafe { as_buf(s) {|buf| f(buf as *libc::c_char) }