Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuygur committed Feb 13, 2017
1 parent 604dc2a commit 8178005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Micro check library in Golang.

## installation
## Installation

`go get gopkg.in/alioygur/is.v1`

Expand All @@ -28,7 +28,7 @@ func Alpha(s string) bool {
}
```

## usage
## Usage

```go
package main
Expand Down
4 changes: 2 additions & 2 deletions is.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func URL(str string) bool {
}

// RequestURL check if the string rawurl, assuming
// it was recieved in an HTTP request, is a valid
// it was received in an HTTP request, is a valid
// URL confirm to RFC 3986
func RequestURL(rawurl string) bool {
url, err := url.ParseRequestURI(rawurl)
Expand All @@ -66,7 +66,7 @@ func RequestURL(rawurl string) bool {
}

// RequestURI check if the string rawurl, assuming
// it was recieved in an HTTP request, is an
// it was received in an HTTP request, is an
// absolute URI or an absolute path.
func RequestURI(rawurl string) bool {
_, err := url.ParseRequestURI(rawurl)
Expand Down

0 comments on commit 8178005

Please sign in to comment.