Skip to content

Commit c8c6c70

Browse files
committed
final touches & typos fixed
1 parent 5c1b07b commit c8c6c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lessons/projects/1.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ contract WAGMI {
288288

289289
In Solidity , there are 3 types of variable visibility modifiers that a developer can use :
290290

291-
- **Public**: If a state variable visibility is marked as `public` then those variables can be used within the smart contract and can be accessed by other contracts as well.Compilers automatically generates functions to read its value when calling the contract, they are called 'getter' functions
291+
- **Public**: If a state variable visibility is marked as `public` then those variables can be used within the smart contract and can be accessed by other contracts as well. Compilers automatically generates functions to read its value when calling the contract, they are called 'getter' functions.
292292

293-
- **Internal**: A state variable with a `internal` visibility can only be accessed within the smart contract and its derived contracts. It can *NOT* be accessed externally. This is the default for state variables when no visibilty is specified.
293+
- **Internal**: A state variable with an `internal` visibility can only be accessed within the smart contract and its derived contracts. It can *NOT* be accessed externally. This is the default for state variables when no visibilty is specified.
294294

295-
- **Private**: When a state variable visibility is marked as `private` then it means , that it is only meant to be used within the defined smart contract . No derived contract can read a variable with a variable with a `private` visibility.
295+
- **Private**: When a state variable visibility is marked as `private` it is only meant to be used within the defined smart contract . No derived contract can read a variable with a `private` visibility.
296296

297297
<ContentCallout emoji='💡' size='md' variant='info'>
298298
While private and internal are not readable or modifiable from other contracts, its values are set on a public blockchain, making its values visible from the outside world.

0 commit comments

Comments
 (0)