Skip to content

Commit 3bc85b5

Browse files
committed
Improve Components documentation
1 parent 511a71c commit 3bc85b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/components/7.0/hierarchical-path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ HierarchicalPath::new()->prepend('sky')->prepend('path/to/the')->value(); //retu
116116

117117
### Replace and Remove segments
118118

119-
To replace of remove segment you must specify the offset on which to act upon.
119+
To replace of remove segments, you must specify the offset on which to act upon.
120120

121121
To replace a segment use the `HierarchicalPath::withSegment` and provide the offset of the segment to remove and
122122
the value used to replace it. Similarly, to remove segments from the current object and returns a new instance

docs/components/7.0/path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Out of the box, the `Path` object operates a number of non-destructive normaliza
4545

4646
### Removing dot segments
4747

48-
To remove dot segment as per [RFC3986](https://tools.ietf.org/html/rfc3986#section-6) you need to explicitly call the `Path::withoutDotSegments` method as the result can be destructive. The method takes no argument and returns a new `Path` object which represents the current object without dot segments.
48+
To remove dot segments as per [RFC3986](https://tools.ietf.org/html/rfc3986#section-6) you need to explicitly call the `Path::withoutDotSegments` method as the result can be destructive. The method takes no argument and returns a new `Path` object which represents the current object without dot segments.
4949

5050
~~~php
5151
<?php

0 commit comments

Comments
 (0)