Skip to content

Commit a4a9cab

Browse files
authored
Fix typos (#36)
1 parent 440965a commit a4a9cab

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CHANGELOG.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
**Breaking Change**: Many structs and fields have been renamed ([rust#128667](https://github.com/rust-lang/rust/pull/128667)):
55
- `Import` is now `Use`, to better reflect the syntax and [the reference](https://doc.rust-lang.org/stable/reference/items/use-declarations.html).
6-
- `TypeBinding` is now `AssocItemConstraint`, to reflect that is can also work on associated constants, and that it can either require the associated item to equal a term, or satisfy bounds.
6+
- `TypeBinding` is now `AssocItemConstraint`, to reflect that it can also work on associated constants, and that it can either require the associated item to equal a term, or satisfy bounds.
77
- Similarly, `TypeBindingKind` is now `AssocItemConstraintKind`
88
- `bindings` has been renamed to `constraints` on `GenericArgs::AngleBracketed`
9-
- `ForeignType` has been renamed to `ExternType`, because [that's what the feature is called](https://github.com/rust-lang/rust/issues/43467). "Foreign" refers to types that arn't from the current crate, whereas Extern Types are entirely opaque to the type system (and may be in the current crate).
10-
- `ItemEnum::AssocConst` and `ItemEnum::AssocType`'s `default` field has been renamed to `value`, to clairify that they can appear in both an `impl` and `trait` item.
9+
- `ForeignType` has been renamed to `ExternType`, because [that's what the feature is called](https://github.com/rust-lang/rust/issues/43467). "Foreign" refers to types that aren't from the current crate, whereas Extern Types are entirely opaque to the type system (and may be in the current crate).
10+
- `ItemEnum::AssocConst` and `ItemEnum::AssocType`'s `default` field has been renamed to `value`, to clarify that they can appear in both an `impl` and `trait` item.
1111
- `Header` is now `FunctionHeader`, to be clearer what it is.
1212
- `FnDecl` is now `FunctionSignature`, as it's also used for `FunctionPointer` types (and not just function items).
1313
- `decl` field is now `sig`
14-
- Boolean fields are now `is_` or `has_` prefixed for clairity:
14+
- Boolean fields are now `is_` or `has_` prefixed for clarity:
1515
- `fields_stripped` is now `has_fields_stripped`
1616
- `variants_stripped` is now `has_stripped_variants`
1717
- `const_` is now `is_const`
1818
- `async_` is now `is_async`
19-
- `unsafe_` is now `is_async`
19+
- `unsafe_` is now `is_unsafe`
2020
- `synthetic` is now `is_synthetic`
2121
- `mutable` is now `is_mutable`
2222
- `c_variadic` is now `is_c_variadic`
@@ -44,7 +44,7 @@
4444
> [!NOTE]
4545
> Due to a mistake, this version was never published to crates.io. Users can use `v0.29.1` instead.
4646
47-
**Breaking Change**: Removed `OpaqueTy`, `ItemKind::OpaqueTy` and `ItemEnum::OpaqueTy`. These were only generated with rarely used nightly features, so almost all documents will be uneffected ([rust#127276](https://github.com/rust-lang/rust/pull/127276)).
47+
**Breaking Change**: Removed `OpaqueTy`, `ItemKind::OpaqueTy` and `ItemEnum::OpaqueTy`. These were only generated with rarely used nightly features, so almost all documents will be unaffected ([rust#127276](https://github.com/rust-lang/rust/pull/127276)).
4848

4949
- Format Version: 33
5050
- Upstream Commit: [`73ac5e0c6e8e0e35229444caf5461c6c079122b4`](https://github.com/rust-lang/rust/commit/73ac5e0c6e8e0e35229444caf5461c6c079122b4)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ This repo is a reexport of
1919
[`rustdoc-json-types`](https://github.com/rust-lang/rust/blob/master/src/rustdoc-json-types/lib.rs)
2020
from the rust repo. Any change to the contents of [`src/`](src/), should be sent
2121
to [`rust-lang/rust`](https://github.com/rust-lang/rust/), via their [normal
22-
contibution
23-
procudures](https://rustc-dev-guide.rust-lang.org/contributing.html). Once
22+
contribution
23+
procedures](https://rustc-dev-guide.rust-lang.org/contributing.html). Once
2424
reviewed and merged there, the change will be pulled to this repo and published
2525
to crates.io.
2626

clgen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rm tmp
6060

6161
echo "First, edit the TODO in CHANGELOG.md"
6262
echo "Then, check the diff"
63-
echo "Finaly Run:"
63+
echo "Finally, Run:"
6464
echo "git add Cargo.toml CHANGELOG.md COMMIT.txt src/"
6565
echo "git commit -m $new_tag"
6666
echo "git tag $new_tag"

0 commit comments

Comments
 (0)