Skip to content

Commit 7c4b5ba

Browse files
committed
docs: remove Rust comparison table from README
- Remove the comparison table between Rust and PHP Result implementation - Keep focus on PHP-specific documentation and usage
1 parent cc43229 commit 7c4b5ba

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,6 @@ All Result types (both Ok and Err) implement these methods:
152152
#### Pattern Matching
153153
- `match(callable $okFn, callable $errFn): mixed` - Pattern match on the Result
154154

155-
## Comparison with Rust
156-
157-
This implementation closely follows Rust's Result type design:
158-
159-
| Rust | PHP Result |
160-
|------|------------|
161-
| `Result<T, E>` | `Result<T, E>` |
162-
| `Ok(T)` | `new Ok(T)` |
163-
| `Err(E)` | `new Err(E)` |
164-
| `is_ok()` | `isOk()` |
165-
| `is_err()` | `isErr()` |
166-
| `unwrap()` | `unwrap()` |
167-
| `unwrap_or()` | `unwrapOr()` |
168-
| `map()` | `map()` |
169-
| `and_then()` | `andThen()` |
170-
| `match` expression | `match()` method |
171-
172155
## Development
173156

174157
### Running Tests

0 commit comments

Comments
 (0)