Skip to content

Commit 77a24b9

Browse files
committed
bugfix documentation guide
1 parent 7cc5a36 commit 77a24b9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Structured Field Values for PHP
88
[![Total Downloads](https://img.shields.io/packagist/dt/bakame/http-structured-fields.svg?style=flat-square)](https://packagist.org/packages/bakame/http-structured-fields)
99
[![Sponsor development of this project](https://img.shields.io/badge/sponsor%20this%20package-%E2%9D%A4-ff69b4.svg?style=flat-square)](https://github.com/sponsors/nyamsprod)
1010

11-
The package uses value objects to parse, serialize and buikd [HTTP Structured Fields][1] in PHP.
11+
The package uses value objects to parse, serialize and build [HTTP Structured Fields][1] in PHP.
1212

1313
HTTP Structured fields are intended for use by specifications of new HTTP fields that wish to
1414
use a common syntax that is more restrictive than traditional HTTP field values or could
@@ -17,15 +17,14 @@ be used to [retrofit current headers][2] to have them compliant with the new syn
1717
The package can be used to:
1818

1919
- parse and serialize HTTP Structured Fields
20-
- create and update HTTP Structured Fields in a predicable way;
21-
- infer fields and data types from HTTP Structured Fields;
20+
- build or update HTTP Structured Fields in a predicable way;
2221

2322
```php
2423
use Bakame\Http\StructuredFields;
2524

2625
$field = StructuredFields\Item::from("/terms", ['rel' => "copyright", 'anchor' => '#foo']);
27-
echo $field->toHttpValue(); //display "/terms";rel="copyright";anchor="#foo"
28-
echo $field->value; //display "/terms"
26+
echo $field->toHttpValue(); //display "/terms";rel="copyright";anchor="#foo"
27+
echo $field->value; //display "/terms"
2928
echo $field->parameters->value('rel'); //display "copyright"
3029
```
3130

@@ -79,8 +78,8 @@ The RFC defines different data types to handle structured fields values.
7978

8079
### Items
8180

82-
Items are the minimal building block for structured fields the following explains how to build
83-
and interact with them.
81+
Items are the minimal building block for structured fields. The following section explains
82+
how to build and interact with them.
8483

8584
#### Bare Items
8685

0 commit comments

Comments
 (0)