From d1919f210bb24ac9cdf66c009468e1b11fd21349 Mon Sep 17 00:00:00 2001 From: Helen Grachtz Date: Sun, 2 Feb 2025 20:05:42 +0300 Subject: [PATCH] Fix function comments errors (#3226) Fix typos --- linera-execution/src/runtime.rs | 2 +- linera-indexer/plugins/src/template.rs | 2 +- linera-rpc/src/simple/transport.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linera-execution/src/runtime.rs b/linera-execution/src/runtime.rs index 7018e41347d..e7a4ae31989 100644 --- a/linera-execution/src/runtime.rs +++ b/linera-execution/src/runtime.rs @@ -331,7 +331,7 @@ impl SyncRuntimeInternal { .expect("Call stack is unexpectedly empty") } - /// Returns a mutable refernce to the [`ApplicationStatus`] of the current application. + /// Returns a mutable reference to the [`ApplicationStatus`] of the current application. /// /// The current application is the last to be pushed to the `call_stack`. /// diff --git a/linera-indexer/plugins/src/template.rs b/linera-indexer/plugins/src/template.rs index c75a246637f..78ffe6d588e 100644 --- a/linera-indexer/plugins/src/template.rs +++ b/linera-indexer/plugins/src/template.rs @@ -28,7 +28,7 @@ impl Template { // Private functions are directly applied to the `Template` struct. async fn helper1(&self, ...) -> Result<.., IndexerError> { - // handle some thinfs on the `Template` struct + // handle some things on the `Template` struct } // Public functions are the ones accessible through the GraphQL server. diff --git a/linera-rpc/src/simple/transport.rs b/linera-rpc/src/simple/transport.rs index 4e11085462e..3369e8bac72 100644 --- a/linera-rpc/src/simple/transport.rs +++ b/linera-rpc/src/simple/transport.rs @@ -241,7 +241,7 @@ where } } - /// Creates a [`UpdServer`] bound to the provided `address`, handling messages using the + /// Creates a [`UdpServer`] bound to the provided `address`, handling messages using the /// provided `handler`. async fn bind(address: impl ToSocketAddrs, handler: State) -> Result { let socket = UdpSocket::bind(address).await?;