Skip to content

Commit 863791a

Browse files
committed
Align naming between Ok function argument and its documentation
The documentation refers to `Ok::<_, anyhow::Error>(value)`. ^^^^^
1 parent 2081692 commit 863791a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ pub trait Context<T, E>: context::private::Sealed {
646646
/// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified
647647
/// ```
648648
#[allow(non_snake_case)]
649-
pub fn Ok<T>(t: T) -> Result<T> {
650-
Result::Ok(t)
649+
pub fn Ok<T>(value: T) -> Result<T> {
650+
Result::Ok(value)
651651
}
652652

653653
// Not public API. Referenced by macro-generated code.

0 commit comments

Comments
 (0)