aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/result.gleam10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gleam/result.gleam b/src/gleam/result.gleam
index 42f3189..3bc1884 100644
--- a/src/gleam/result.gleam
+++ b/src/gleam/result.gleam
@@ -156,16 +156,6 @@ pub fn flatten(result: Result(Result(a, e), e)) -> Result(a, e) {
/// Error(Nil)
/// ```
///
-/// `result.try` can be utilized the way
-/// ancient Gleam's `try` used to work:
-///
-/// ```text
-/// // Ancient try
-/// try file = open_file()
-/// // ... can be mimicked like so:
-/// use file <- try(open_file())
-/// ```
-///
pub fn try(
result: Result(a, e),
apply fun: fn(a) -> Result(b, e),