Skip to content

Commit 5b93058

Browse files
committed
fix readme links
1 parent a592d13 commit 5b93058

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ println!("{:#?}", plus_one);
2929
```
3030

3131
This library aims to work in as simple and safe a way as possible. On stable
32-
Rust the returned closures implement [`traits::FnOnce`], [`traits::FnMut`] and
33-
[`traits::Fn`], and on nightly Rust [`std::ops::FnOnce`], [`std::ops::FnMut`]
34-
and [`std::ops::Fn`] are implemented as well using the `unboxed_closures` and
35-
`fn_traits` features (rust issue [#29625](https://github.com/rust-lang/rust/issues/29625)).
32+
Rust the wrapped closures implement
33+
[`traits::FnOnce`](https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.FnOnce.html),
34+
[`traits::FnMut`](https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.FnMut.html)
35+
and [`traits::Fn`](https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.Fn.html),
36+
and when the "nightly" feature is passed
37+
[`std::ops::FnOnce`](https://doc.rust-lang.org/std/ops/trait.FnOnce.html),
38+
[`std::ops::FnMut`](https://doc.rust-lang.org/std/ops/trait.FnMut.html) and
39+
[`std::ops::Fn`](https://doc.rust-lang.org/std/ops/trait.Fn.html) are
40+
implemented as well using the `unboxed_closures` and `fn_traits` features (rust
41+
issue [#29625](https://github.com/rust-lang/rust/issues/29625)).
3642

3743
* There are three macros,
3844
[`FnOnce`](https://docs.rs/serde_closure/0.3/serde_closure/macro.FnOnce.html),

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
//! ```
2626
//!
2727
//! This library aims to work in as simple and safe a way as possible. On stable
28-
//! Rust the returned closures implement [`traits::FnOnce`], [`traits::FnMut`]
29-
//! and [`traits::Fn`], and on nightly Rust [`std::ops::FnOnce`],
30-
//! [`std::ops::FnMut`] and [`std::ops::Fn`] are implemented as well using the
31-
//! `unboxed_closures` and `fn_traits` features (rust issue
32-
//! [#29625](https://github.com/rust-lang/rust/issues/29625)).
28+
//! Rust the wrapped closures implement [`traits::FnOnce`], [`traits::FnMut`]
29+
//! and [`traits::Fn`], and when the "nightly" feature is passed
30+
//! [`std::ops::FnOnce`], [`std::ops::FnMut`] and [`std::ops::Fn`] are
31+
//! implemented as well using the `unboxed_closures` and `fn_traits` features
32+
//! (rust issue [#29625](https://github.com/rust-lang/rust/issues/29625)).
3333
//!
3434
//! * There are three macros, [`FnOnce`](macro@FnOnce), [`FnMut`](macro@FnMut)
3535
//! and [`Fn`](macro@Fn), corresponding to the three types of Rust closure.

0 commit comments

Comments
 (0)