Skip to content

Commit

Permalink
Merge pull request #38 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
pappasam committed Jan 8, 2023
2 parents f1a12d7 + eb1f3a0 commit 26e3e7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ title = "The example" # This is a inline comment

### Block

Block comments, are any comments that are on their own line. These comments are treated as _attached_ to the item in the toml that is directly below them, not seperated by whitespace. These comments can be multiple lines. Inline comments will appear in the sorted output above the item they were attached to in the input toml.
Block comments, are any comments that are on their own line. These comments are treated as _attached_ to the item in the toml that is directly below them, not separated by whitespace. These comments can be multiple lines. Inline comments will appear in the sorted output above the item they were attached to in the input toml.

```toml
# Comment attached to title
title = "The example"

# This comment is an orphan because it
# is seperated from a-section by whitespace
# is separated from a-section by whitespace

# This comment is attached to a-section
# attached comments can be multiple lines
Expand All @@ -195,7 +195,7 @@ Orphan comments are any comments that don't fall into the above categories, they
title = "The example"

# This comment is an orphan because it
# is seperated from a-section by whitespace
# is separated from a-section by whitespace

# This comment is attached to a-section
[a-section]
Expand Down Expand Up @@ -224,7 +224,7 @@ dob = 1979-05-27T07:32:00Z # First class dates? Why not?

[[a-section.hello]]
ports = [ 80 ]
#Attched to dob
#Attached to dob
dob = 1920-05-27T07:32:00Z # Another date!

[a-section]
Expand All @@ -249,7 +249,7 @@ dob = 1979-05-27T07:32:00Z # First class dates? Why not?

[[a-section.hello]]
ports = [ 80 ]
# Attched to dob
# Attached to dob
dob = 1920-05-27T07:32:00Z # Another date!

# Attached to b-section
Expand Down
2 changes: 1 addition & 1 deletion toml_sort/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_version() -> str:
# pylint: disable=import-outside-toplevel
try:
# Type checker for Python < 3.8 fails.
# Since this ony happens here, we just ignore.
# Since this only happens here, we just ignore.
from importlib.metadata import version # type: ignore
except ImportError:
try:
Expand Down

0 comments on commit 26e3e7e

Please sign in to comment.