Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: typos #3764

Merged
merged 3 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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