]> git.lizzy.rs Git - rust.git/commitdiff
Fix a typo and add a missing word
authorGeorg Brandl <georg@python.org>
Wed, 13 Apr 2016 17:35:21 +0000 (19:35 +0200)
committerGeorg Brandl <georg@python.org>
Wed, 13 Apr 2016 17:35:21 +0000 (19:35 +0200)
src/libstd/panic.rs

index 16401c4527f160b15dab692c8872aeff10018ccf..bbd89af01a73aa2bb07ff2b571f3c4a52329f154 100644 (file)
@@ -346,9 +346,9 @@ extern "rust-call" fn call_once(self, _args: ()) -> R {
 /// It is **not** recommended to use this function for a general try/catch
 /// mechanism. The `Result` type is more appropriate to use for functions that
 /// can fail on a regular basis. Additionally, this function is not guaranteed
-/// to catch all panics, see the "Notes" sectino below.
+/// to catch all panics, see the "Notes" section below.
 ///
-/// The closure provided is required to adhere to the `UnwindSafe` to ensure
+/// The closure provided is required to adhere to the `UnwindSafe` trait to ensure
 /// that all captured variables are safe to cross this boundary. The purpose of
 /// this bound is to encode the concept of [exception safety][rfc] in the type
 /// system. Most usage of this function should not need to worry about this