Skip to content

Commit

Permalink
Fix: typos (#3764)
Browse files Browse the repository at this point in the history
* Fix: typos

Fix: typos

* Fix: typos

Fix: typos

Co-authored-by: CoderZhi <[email protected]>
  • Loading branch information
omahs and CoderZhi authored Jan 16, 2023
1 parent dab026e commit 9642fab
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 @@ -67,7 +67,7 @@ If the dependency needs to be updated, run
go get -u
go mod tidy
```
If you want learn more advanced usage about `go mod`, you can find out [here](https://github.com/golang/go/wiki/Modules).
If you want to learn more advanced usage about `go mod`, you can find out [here](https://github.com/golang/go/wiki/Modules).

Run unit tests only by

Expand All @@ -83,7 +83,7 @@ make docker

### Run iotex-core

Start (or resume) a standalone server to operate on an blockchain by
Start (or resume) a standalone server to operate on a blockchain by

```
make run
Expand Down
4 changes: 2 additions & 2 deletions crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* “//” is not a regular comment sign in CGO declaration. It starts a directive and will not be ignored by compiler.
* import “C” should be immediately preceded by //#include XXX or //#cgo.
* //#include XXX indicates the use of c header files and c source code files
* //#cgo is used to indicate the use of flags like CFLAGS, CPPFLAGS, CXXFLAGS, FFLAGS and LDFLAGS etc. to tweak the behavior of C, C++ compiler. The //#cgo directive can also include a list of build constraints that limit the os and architecture. It can also indicates the C library, so that you do not have to include the source code files.
* //#cgo is used to indicate the use of flags like CFLAGS, CPPFLAGS, CXXFLAGS, FFLAGS and LDFLAGS etc. to tweak the behavior of C, C++ compiler. The //#cgo directive can also include a list of build constraints that limit the os and architecture. It can also indicate the C library, so that you do not have to include the source code files.
``` Go
//#cgo darwin LDFLAGS: -L${SRCDIR}/lib -lsect283k1_macos
//#cgo linux LDFLAGS: -L${SRCDIR}/lib -lsect283k1_ubuntu
Expand Down Expand Up @@ -126,7 +126,7 @@ func (b *bls) Sign(privkey []uint32, msg []byte) (bool, []byte, error) {
```
##### 4. Use struct defined in C
* Construct a corresponding struct in Go that mimics the same struct in C.
* (Recommended) Write function to serialize and deserialize the the struct, so the information can be exposed outside independently.
* (Recommended) Write function to serialize and deserialize the struct, so the information can be exposed outside independently.
``` Go
// C header file and C struct definition
typedef struct
Expand Down

0 comments on commit 9642fab

Please sign in to comment.