Skip to content

Commit

Permalink
docs: Remove outdated comment (#1952)
Browse files Browse the repository at this point in the history
We removed Api::reset way back in #489. We should delete this comment that continues to reference Api::reset, since it is clearly inaccurate.
  • Loading branch information
szokeasaurusrex authored Feb 20, 2024
1 parent d40849a commit b9138f7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ pub struct ApiResponse {

impl Api {
/// Returns the current api for the thread.
///
/// Threads other than the main thread must call `Api::reset` when
/// shutting down to prevent `process::exit` from hanging afterwards.
pub fn current() -> Arc<Api> {
let mut api_opt = API.lock();
if let Some(ref api) = *api_opt {
Expand Down

0 comments on commit b9138f7

Please sign in to comment.