@@ -29,11 +29,11 @@ use soroban_sdk::{contract, contractimpl, vec, Env, String, Vec};
2929/// # let env = Env::default();
3030/// # let contract_id = env.register(Contract, ());
3131/// # let client = hello_world::ContractClient::new(&env, &contract_id);
32- ///
32+ ///
3333/// // Call the hello function
3434/// let name = String::from_str(&env, "World");
3535/// let greeting = client.hello(&name);
36- ///
36+ ///
3737/// // greeting will be ["Hello", "World"]
3838/// assert_eq!(greeting.len(), 2);
3939/// ```
@@ -98,22 +98,22 @@ impl Contract {
9898 /// # let env = Env::default();
9999 /// # let contract_id = env.register(Contract, ());
100100 /// # let client = hello_world::ContractClient::new(&env, &contract_id);
101- ///
101+ ///
102102 /// // Basic greeting
103103 /// let name = String::from_str(&env, "Alice");
104104 /// let result = client.hello(&name);
105- ///
105+ ///
106106 /// // Verify the result
107107 /// assert_eq!(result, vec![
108108 /// &env,
109109 /// String::from_str(&env, "Hello"),
110110 /// String::from_str(&env, "Alice")
111111 /// ]);
112- ///
112+ ///
113113 /// // Different names produce different greetings
114114 /// let dev_greeting = client.hello(&String::from_str(&env, "Developer"));
115115 /// let world_greeting = client.hello(&String::from_str(&env, "World"));
116- ///
116+ ///
117117 /// // Both contain "Hello" as the first element
118118 /// assert_eq!(dev_greeting.get(0).unwrap(), String::from_str(&env, "Hello"));
119119 /// assert_eq!(world_greeting.get(0).unwrap(), String::from_str(&env, "Hello"));
0 commit comments