Browse Source

Fix some typos in doc comments (#3413)

needsure 10 months ago
parent
commit
8bc883ad85

+ 1 - 1
idl/src/build.rs

@@ -88,7 +88,7 @@ impl IdlBuilder {
         self
     }
 
-    /// Set the `cargo` args that will get passed to the underyling `cargo` command when building
+    /// Set the `cargo` args that will get passed to the underlying `cargo` command when building
     /// IDLs (default: empty).
     pub fn cargo_args(mut self, cargo_args: Vec<String>) -> Self {
         self.cargo_args.replace(cargo_args);

+ 1 - 1
tests/errors/programs/errors/src/lib.rs

@@ -1,4 +1,4 @@
-//! This example demonstrates how custom errors and associated error messsages
+//! This example demonstrates how custom errors and associated error messages
 //! can be defined and transparently propagated to clients.
 
 use anchor_lang::prelude::*;

+ 1 - 1
tests/lazy-account/programs/lazy-account/src/lib.rs

@@ -1,6 +1,6 @@
 //! Tests demonstraing the usage of [`LazyAccount`].
 //!
-//! The tests have been simplied by using a stack heavy account in order to demonstrate the usage
+//! The tests have been simplified by using a stack heavy account in order to demonstrate the usage
 //! and its usefulness without adding excessive amount of accounts.
 //!
 //! See the individual instructions for more documentation: [`Init`], [`Read`], [`Write`].