Skip to content

Commit e63ff8e

Browse files
committed
README.md - fix typos
1 parent d7120b2 commit e63ff8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Gem Version](https://badge.fury.io/rb/const_set_p.svg)](https://badge.fury.io/rb/const_set_p)
33
[![RSpec](https://github.com/epaew/const_set_p.rb/actions/workflows/rspec.yaml/badge.svg)](https://github.com/epaew/const_set_p.rb/actions/workflows/rspec.yaml)
44

5-
Provides `Module#const_set_p`, which is a wrapper method for `Module#const_set`, it acts like `mkdir -p` does for `mkdir`.
5+
Provides `Module#const_set_p`, a wrapper method for `Module#const_set` that acts like `mkdir -p` does for `mkdir`.
66

77
## Installation
88

@@ -32,14 +32,14 @@ module M
3232
const_set("C::D", Class.new)
3333

3434
# `Module#const_set_p` automatically defines all intermediate modules.
35-
# i.e. The code below defines `M::N`, `M::N::O` and `M::N::O::P`.
35+
# e.g. The code below defines `M::N`, `M::N::O` and `M::N::O::P`.
3636
const_set_p("N::O::P", Class.new)
3737

3838
# Respects pre-defined classes and modules.
39-
# i.e. The code below does not replace the pre-defined `M::C` class.
39+
# e.g. The code below does not replace the pre-defined `M::C` class.
4040
const_set_p("C::D", Class.new)
4141

42-
# Raises NameError if the specified intermediate constant is pre-defined, and is neither a Class nor a Module.
42+
# Raises a `NameError` if the specified intermediate constant is already defined and is neither a Class nor a Module.
4343
const_set_p("S::T", Class.new)
4444
end
4545
```

0 commit comments

Comments
 (0)