Skip to content

Commit cd3ae28

Browse files
committed
fix a typo in track caller docs
1 parent 881ad88 commit cd3ae28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/other_tutorial.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ pub fn Documentation() -> impl IntoView {
193193
<p>"When writing code that other people might use, it is important that error messages point to a useful place. When a function errors, the error message often refers to the base built-in function that emitted the error."</p>
194194
<Editor example="F ← +@a\nF 5\nF @b"/> // Should fail
195195
<p>"However, that position in the code might not be useful to the person trying to figure out where they went wrong."</p>
196-
<p>"The "<code>"# Tracker caller!"</code>" semantic comment tells a function to emit errors at its call site rather than from within. It can be place either inside the function's body, or on the line just above it."</p>
197-
<Editor example="# Track caller!\nF ← +@a\nF 5\nF @b"/> // Should fail
196+
<p>"The "<code>"# Tracker caller!"</code>" semantic comment tells a function to emit errors at its call site rather than from within. It can be placed either inside the function's body, or on the line just above it."</p>
197+
<Editor example="F ← +@a # Track caller!\nF 5\nF @b"/> // Should fail
198198
<p>"Notice the difference in the error messages."</p>
199199
}
200200
}

0 commit comments

Comments
 (0)