mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Codegen: Fix typo in doc (#37777)
Fix typo. Testing: No. Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
9a0f2be162
commit
78cd770697
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@
|
||||||
//! for a static members and instance methods for regular members).
|
//! for a static members and instance methods for regular members).
|
||||||
//!
|
//!
|
||||||
//! The instance methods for an interface `Foo` are defined on a
|
//! The instance methods for an interface `Foo` are defined on a
|
||||||
//! `dom::bindings::codegen::Bindings::FooBindings::FooMethods` trait. This
|
//! `dom::bindings::codegen::Bindings::FooBinding::FooMethods` trait. This
|
||||||
//! trait is then implemented for `Foo`. (All methods take an `&self`
|
//! trait is then implemented for `Foo`. (All methods take an `&self`
|
||||||
//! parameter, as pointers to DOM objects can be freely aliased.)
|
//! parameter, as pointers to DOM objects can be freely aliased.)
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
//! Implementing methods for a DOM object
|
//! Implementing methods for a DOM object
|
||||||
//! =====================================
|
//! =====================================
|
||||||
//!
|
//!
|
||||||
//! * `dom::bindings::codegen::Bindings::FooBindings::FooMethods` for methods
|
//! * `dom::bindings::codegen::Bindings::FooBinding::FooMethods` for methods
|
||||||
//! defined through IDL;
|
//! defined through IDL;
|
||||||
//! * `&self` public methods for public helpers;
|
//! * `&self` public methods for public helpers;
|
||||||
//! * `&self` methods for private helpers.
|
//! * `&self` methods for private helpers.
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
//! * defining the DOM struct `Foo` with a `#[dom_struct]` attribute, a
|
//! * defining the DOM struct `Foo` with a `#[dom_struct]` attribute, a
|
||||||
//! superclass or `Reflector` member, and other members as appropriate;
|
//! superclass or `Reflector` member, and other members as appropriate;
|
||||||
//! * implementing the
|
//! * implementing the
|
||||||
//! `dom::bindings::codegen::Bindings::FooBindings::FooMethods` trait for
|
//! `dom::bindings::codegen::Bindings::FooBinding::FooMethods` trait for
|
||||||
//! `Foo`;
|
//! `Foo`;
|
||||||
//! * adding/updating the match arm in create_element in
|
//! * adding/updating the match arm in create_element in
|
||||||
//! `components/script/dom/create.rs` (only applicable to new types inheriting
|
//! `components/script/dom/create.rs` (only applicable to new types inheriting
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue