Skip to content

Commit

Permalink
Fix a few typos in code (enso-org#3223)
Browse files Browse the repository at this point in the history
* Fix a typo in build.sbt
* Change incorrect Panic.catch reference to Panic.recover
  • Loading branch information
radeusgd authored Jan 13, 2022
1 parent bb86446 commit 4fc97d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ lazy val `std-google-api` = project
.settings(
autoScalaLibrary := false,
Compile / packageBin / artifactPath :=
`google-api-polyglot-root` / "std-image.jar",
`google-api-polyglot-root` / "std-google-api.jar",
libraryDependencies ++= Seq(
"com.google.api-client" % "google-api-client" % "1.32.1",
"com.google.apis" % "google-api-services-sheets" % "v4-rev612-1.25.0"
Expand Down
6 changes: 3 additions & 3 deletions engine/runtime/src/main/resources/Builtins.enso
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ type Panic
program control flow.

Panics "bubble up" through the program until they reach either an
invocation of Panic.catch or the program's main method. An unhandled
invocation of Panic.recover or the program's main method. An unhandled
panic in main will terminate the program.

? Dataflow Errors or Panics
Expand All @@ -365,7 +365,7 @@ type Panic
## Executes the provided action and converts any panic thrown by it into
an Error.

If action executes successfully, the result of Panic.catch is the
If action executes successfully, the result of Panic.recover is the
result of that action. Otherwise, it is the panic that was thrown after
conversion to a dataflow error.

Expand All @@ -377,7 +377,7 @@ type Panic

Panic.recover (Panic.throw "Oh no!")
recover : Any -> Any
recover ~action = @Builtin_Method "Panic.catch"
recover ~action = @Builtin_Method "Panic.recover"

# Function types.
type Function
Expand Down

0 comments on commit 4fc97d5

Please sign in to comment.