Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit a9db3b0

Browse files
committed
commit
1 parent 1a7f517 commit a9db3b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/language/exception-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ fn panic_if_negative(value: i32) {
7171

7272
## Error propagation
7373

74-
In .NET, exceptions are passed up until they are handled or the program terminates. In Rust, unrecoverable errors behave similarly, but handling them is uncommon.
74+
In JavaScript, exceptions are passed up until they are handled or the program terminates. In Rust, unrecoverable errors behave similarly, but handling them is uncommon.
7575

7676
Recoverable errors, however, need to be propagated and handled explicitly. Their presence is always indicated by the Rust function or method signature. Catching an exception allows you to take action based on the presence or absence of an error in JavaScript:
7777

78-
```csharp
78+
```js
7979
//JavaScript doesn't have a file system in it. People often implement file systems using the BrowserFS library that mimic Node.js APIs.
8080
function write() {
8181
try {

0 commit comments

Comments
 (0)