Skip to content

Commit

Permalink
Improve variables and comments errors (#3260)
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
paulfisherz authored Feb 6, 2025
1 parent 7dbd24a commit 9acc328
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion linera-sdk/src/abis/fungible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl InitialStateBuilder {
self
}

/// Returns the serialized initial state of the application, ready to used as the
/// Returns the serialized initial state of the application, ready to use as the
/// initialization argument.
pub fn build(&self) -> InitialState {
InitialState {
Expand Down
2 changes: 1 addition & 1 deletion linera-views/src/backends/scylla_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const VISIBLE_MAX_VALUE_SIZE: usize = RAW_MAX_VALUE_SIZE
/// correct.
const MAX_BATCH_SIZE: usize = 5000;

/// The client for ScyllaDbB:
/// The client for ScyllaDB:
/// * The session allows to pass queries
/// * The namespace that is being assigned to the database
/// * The prepared queries used for implementing the features of `KeyValueStore`.
Expand Down
4 changes: 2 additions & 2 deletions linera-witty-macros/src/util/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ impl<'input> FieldsInformation<'input> {
.map(FieldInformation::wit_type_name)
}

/// Returns the code with a pattern to match a heterogenous list using the `field_names` as
/// Returns the code with a pattern to match a heterogeneous list using the `field_names` as
/// bindings.
pub fn hlist_type(&self) -> TokenStream {
let field_types = self.types();
quote! { linera_witty::HList![#( #field_types ),*] }
}

/// Returns the code with a pattern to match a heterogenous list using the `field_names` as
/// Returns the code with a pattern to match a heterogeneous list using the `field_names` as
/// bindings.
///
/// This function receives `field_names` instead of a `Fields` instance because some fields might
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use syn::{

use crate::util::{Specialization, Specializations};

/// Information on the generic type parameter to use for the caller parameter, if present.
/// Information on the generic type parameter to use for the caller parameter, if present.
#[derive(Clone, Copy, Debug)]
pub struct CallerTypeParameter<'input> {
caller: &'input Ident,
Expand Down
2 changes: 1 addition & 1 deletion linera-witty-macros/src/wit_export/function_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<'input> FunctionInformation<'input> {
path.is_ident(caller_type)
}

/// Parses a function's parameters and returns the generated code with a list ofbindings to the
/// Parses a function's parameters and returns the generated code with a list of bindings to the
/// parameters and a list of the parameters types.
fn parse_parameters(
is_reentrant: bool,
Expand Down

0 comments on commit 9acc328

Please sign in to comment.