From ad972f76bd5a3136aaae6d26d50f2877225f480d Mon Sep 17 00:00:00 2001 From: Iban Eguia Date: Wed, 30 Jun 2021 09:58:38 -0700 Subject: [PATCH] Fixed documentation warnings (#1381) --- boa/src/builtins/array/mod.rs | 2 +- boa/src/builtins/map/mod.rs | 2 +- boa/src/builtins/regexp/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boa/src/builtins/array/mod.rs b/boa/src/builtins/array/mod.rs index 83660d378b..4fd5229e63 100644 --- a/boa/src/builtins/array/mod.rs +++ b/boa/src/builtins/array/mod.rs @@ -278,7 +278,7 @@ impl Array { /// `get Array [ @@species ]` /// - /// The Array[@@species] accessor property returns the Array constructor. + /// The `Array [ @@species ]` accessor property returns the Array constructor. /// /// More information: /// - [ECMAScript reference][spec] diff --git a/boa/src/builtins/map/mod.rs b/boa/src/builtins/map/mod.rs index bf578a79a7..f5b3c0c847 100644 --- a/boa/src/builtins/map/mod.rs +++ b/boa/src/builtins/map/mod.rs @@ -174,7 +174,7 @@ impl Map { /// `get Map [ @@species ]` /// - /// The Map[@@species] accessor property returns the Map constructor. + /// The `Map [ @@species ]` accessor property returns the Map constructor. /// /// More information: /// - [ECMAScript reference][spec] diff --git a/boa/src/builtins/regexp/mod.rs b/boa/src/builtins/regexp/mod.rs index 8043c68304..9de0a3728c 100644 --- a/boa/src/builtins/regexp/mod.rs +++ b/boa/src/builtins/regexp/mod.rs @@ -270,9 +270,9 @@ impl RegExp { Ok(this) } - /// `get RegExp[@@species]` + /// `get RegExp [ @@species ]` /// - /// The RegExp[@@species] accessor property returns the RegExp constructor. + /// The `RegExp [ @@species ]` accessor property returns the RegExp constructor. /// /// More information: /// - [ECMAScript reference][spec]