Skip to content

Commit 224a52e

Browse files
committed
Update comments
1 parent 197ab24 commit 224a52e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

crates/ark/src/interface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ impl RMain {
803803
// to be handled in a blocking way to ensure subscribers are
804804
// notified before the next incoming message is processed.
805805

806-
// First handle execute requests outside of `select!` to ensure they
807-
// have priority. `select!` chooses at random.
806+
// First handle execute requests outside of `select` to ensure they
807+
// have priority. `select` chooses at random.
808808
if let Ok(req) = r_request_rx.try_recv() {
809809
if let Some(input) = self.handle_execute_request(req, &info, buf, buflen) {
810810
return input;

crates/ark/src/modules/positron/hooks.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ rebind <- function(pkg, name, value, namespace = FALSE) {
3131
#' Override a function within an attached package
3232
#'
3333
#' Assumes the package is attached, typically used for base packages like base or utils.
34-
#' - `hook` will replace the binding for unnamespaced calls.
35-
#' - `hook_namespace` will optionally also replace the binding for namespaced calls.
34+
#' - `pkg_bind()` replaces the binding in the package environment on the search
35+
#' path for unnamespaced calls.
36+
#' - `ns_bind()` replaces the binding for namespaced calls.
3637
#'
3738
#' TODO: Will cause ark to fail to start if `option(defaultPackages = character())`
3839
#' or `R_DEFAULT_PACKAGES=NULL` are set! One idea is to register an `onAttach()`

0 commit comments

Comments
 (0)